mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Lint Python code with flake8 and isort
This commit is contained in:
committed by
Brennan Ashton
parent
2b309349fe
commit
15932fa9ea
@@ -0,0 +1,9 @@
|
||||
[flake8]
|
||||
ignore = W503,W605
|
||||
max-complexity = 27
|
||||
max-line-length = 125
|
||||
show-source = True
|
||||
statistics = True
|
||||
|
||||
[isort]
|
||||
profile = black
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user