GitHub Actions: make pyupgrade mandatory and max-line-length=122

This commit is contained in:
Christian Clauss
2021-03-06 21:04:09 +01:00
parent 97bb344eec
commit 9f550ff9af
8 changed files with 20 additions and 14 deletions

View File

@@ -23,10 +23,10 @@ jobs:
- run: pip install bandit black codespell flake8 mypy pyupgrade safety pylint
- run: bandit -r . || true
- run: black --check .
- run: codespell --ignore-words-list="mape" --quiet-level=2 --skip=".git" # --skip=""
- run: flake8 . --count --ignore=E203,E302,F401,W503 --max-line-length=140 --show-source --statistics
- run: codespell --ignore-words-list="mape" --quiet-level=2 --skip=".git"
- run: flake8 . --count --ignore=E203,E302,F401,W503 --max-line-length=122 --show-source --statistics
- run: mypy --ignore-missing-imports .
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py
- run: safety check
- run: pylint **/*.py
test: