Debian Codegraph @

.github/workflows/lint.yml

raw
1 name: Lint
2
3 # If a pull-request is pushed then cancel all previously running jobs related
4 # to that pull-request
5 concurrency:
6 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
7 cancel-in-progress: true
8
9 on:
10 push:
11 branches:
12 - master
13 pull_request:
14 branches:
15 - master
16
17 env:
18 PY_COLORS: 1
19
20 jobs:
21 lint:
22 runs-on: ubuntu-latest
23 steps:
24 - uses: actions/checkout@v3
25 with:
26 fetch-depth: 0
27 - uses: actions/setup-python@v3
28 - run: pip install --upgrade tox
29 - name: Run black code formatter (https://black.readthedocs.io/en/stable/)
30 run: tox -e black -- --check
31 - name: Run isort import order checker (https://pycqa.github.io/isort/)
32 run: tox -e isort -- --check
33 - name: Run flake8 (https://flake8.pycqa.org/en/latest/)
34 run: tox -e flake8
35 - name: Run pylint Python code static checker (https://github.com/PyCQA/pylint)
36 run: tox -e pylint
37 - name: Run mypy static typing checker (https://www.mypy-lang.org/)
38 run: tox -e mypy