Lint Python code with flake8 and isort

This commit is contained in:
Christian Clauss 2021-04-09 18:35:47 +02:00 committed by Petro Karashchenko
parent 72ead93dee
commit 72cb2c237b
2 changed files with 17 additions and 2 deletions

9
.github/linters/setup.cfg vendored Normal file
View File

@ -0,0 +1,9 @@
[flake8]
ignore = W503,W605
max-complexity = 27
max-line-length = 125
show-source = True
statistics = True
[isort]
profile = black

View File

@ -14,9 +14,15 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: YAML Lint
- run: mkdir super-linter.report
- name: Lint
uses: github/super-linter@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_YAML: true
VALIDATE_PYTHON_BLACK: true
VALIDATE_PYTHON_FLAKE8: true
PYTHON_FLAKE8_CONFIG_FILE: setup.cfg
VALIDATE_PYTHON_ISORT: true
PYTHON_ISORT_CONFIG_FILE: setup.cfg
VALIDATE_YAML: true