File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ name : lint_python
2+ on : [pull_request, push]
3+ jobs :
4+ lint_python :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v2
8+ - uses : actions/setup-python@v2
9+ - run : pip install --upgrade pip wheel
10+ - run : pip install bandit black codespell flake8 flake8-2020 flake8-bugbear
11+ flake8-comprehensions isort mypy pytest pyupgrade safety
12+ - run : bandit --recursive --skip B101 . || true # B101 is assert statements
13+ - run : black --check . || true
14+ - run : codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock"
15+ - run : flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
16+ - run : flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
17+ --show-source --statistics
18+ - run : isort --check-only --profile black . || true
19+ - run : pip install -r requirements.txt || pip install --editable . || true
20+ - run : mkdir --parents --verbose .mypy_cache
21+ - run : mypy --ignore-missing-imports --install-types --non-interactive . || true
22+ - run : pytest . || true
23+ - run : pytest --doctest-modules . || true
24+ - run : shopt -s globstar && pyupgrade --py36-plus **/*.py || true
25+ - run : safety check
You can’t perform that action at this time.
0 commit comments