mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +00:00
reduce max-complexity to 10
This commit is contained in:
parent
f15bb50cfe
commit
1d3d3b13ed
2
.github/workflows/lint_python.yml
vendored
2
.github/workflows/lint_python.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
flake8-comprehensions isort
|
flake8-comprehensions isort
|
||||||
- run: black --check --diff --line-length 79 .
|
- run: black --check --diff --line-length 79 .
|
||||||
- run: codespell
|
- run: codespell
|
||||||
- run: flake8 . --count --max-complexity=12 --max-line-length=79
|
- run: flake8 . --count --max-complexity=10 --max-line-length=79
|
||||||
--show-source --statistics
|
--show-source --statistics
|
||||||
- run: isort --check-only --line-length 79 --profile black .
|
- run: isort --check-only --line-length 79 --profile black .
|
||||||
# - run: pip install -r tubearchivist/requirements.txt
|
# - run: pip install -r tubearchivist/requirements.txt
|
||||||
|
@ -91,7 +91,7 @@ function validate {
|
|||||||
echo "running codespell"
|
echo "running codespell"
|
||||||
codespell --skip="./.git" "$check_path"
|
codespell --skip="./.git" "$check_path"
|
||||||
echo "running flake8"
|
echo "running flake8"
|
||||||
flake8 "$check_path" --count --max-complexity=12 --max-line-length=79 \
|
flake8 "$check_path" --count --max-complexity=10 --max-line-length=79 \
|
||||||
--show-source --statistics
|
--show-source --statistics
|
||||||
echo "running isort"
|
echo "running isort"
|
||||||
isort --check-only --diff --profile black -l 79 "$check_path"
|
isort --check-only --diff --profile black -l 79 "$check_path"
|
||||||
|
Loading…
Reference in New Issue
Block a user