Lint Python code with flake8 and isort

This commit is contained in:
Christian Clauss
2021-04-09 18:35:47 +02:00
committed by Brennan Ashton
parent 2b309349fe
commit 15932fa9ea
10 changed files with 67 additions and 50 deletions
+9
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
+8 -2
View File
@@ -10,9 +10,15 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: YAML Lint
- run: mkdir super-linter.report
- name: Lint
uses: github/super-linter@v3
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