|
4 | 4 | lint_python:
|
5 | 5 | runs-on: ubuntu-latest
|
6 | 6 | steps:
|
7 |
| - - uses: actions/checkout@v2 |
8 |
| - - uses: actions/setup-python@v2 |
| 7 | + - uses: actions/checkout@v3 |
| 8 | + - uses: actions/setup-python@v4 |
| 9 | + with: |
| 10 | + python-version: 3.x |
9 | 11 | - run: pip install --upgrade pip wheel
|
10 | 12 | - run: pip install bandit black codespell flake8 flake8-2020 flake8-bugbear
|
11 | 13 | flake8-comprehensions isort mypy pytest pyupgrade safety
|
12 |
| - - run: bandit --recursive --skip B101 . || true # B101 is assert statements |
| 14 | + - run: bandit --recursive --skip B101,B105,B106,B107,B324 . |
13 | 15 | - run: black --check . || true
|
14 |
| - - run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock" |
| 16 | + - run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock" |
15 | 17 | - run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
16 | 18 | - run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
|
17 | 19 | --show-source --statistics
|
18 | 20 | - run: isort --check-only --profile black . || true
|
19 |
| - - run: pip install -r requirements.txt || pip install --editable . || true |
| 21 | + - run: pip install -r requirements-test.txt |
| 22 | + - run: pip install --editable . |
20 | 23 | - run: mkdir --parents --verbose .mypy_cache
|
21 | 24 | - 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: pytest |
| 26 | + - run: shopt -s globstar && pyupgrade --py37-plus **/*.py || true |
25 | 27 | - run: safety check
|
0 commit comments