-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (36 loc) · 1.08 KB
/
pylinter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Pylint
# ---------------------------------------#
# ---------------------------------------#
# --- PYLINTER - Github Actions -----#
# ---------------------------------------#
# ---------------------------------------#
# Pylint for github actions. Runs seperate to superlinter
# Documentation and source:
# https://github.com/cclauss/GitHub-Action-for-pylint
on:
pull_request:
branches: [dev, main, 331-staging]
jobs:
build:
name: Pylint
# Works on most linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
env:
# may be worth changing this to master / main in future
DEFAULT_BRANCH: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# For pylint's settings
PYTHON_PYLINT_CONFIG_FILE: .pylintrc