Lint Python code with flake8 and isort
This commit is contained in:
parent
72ead93dee
commit
72cb2c237b
9
.github/linters/setup.cfg
vendored
Normal file
9
.github/linters/setup.cfg
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
[flake8]
|
||||
ignore = W503,W605
|
||||
max-complexity = 27
|
||||
max-line-length = 125
|
||||
show-source = True
|
||||
statistics = True
|
||||
|
||||
[isort]
|
||||
profile = black
|
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user