forked from python/cherry-picker
-
-
Notifications
You must be signed in to change notification settings - Fork 0
22 lines (22 loc) Β· 966 Bytes
/
lint_python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: lint_python
on: [pull_request, push, workflow_dispatch]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
cache: pip
cache-dependency-path: .github/workflows/lint_python.yml
- run: pip install --upgrade pip wheel
# TODO: remove setuptools installation when safety==2.4.0 is released
- run: pip install --upgrade bandit codespell flake8 flake8-bugbear
flake8-comprehensions mypy safety setuptools
- run: bandit --recursive --skip B101,B404,B603 .
- run: codespell --ignore-words-list="commitish"
- run: flake8 . --count --ignore=C408,E203,F841,W503 --max-complexity=10
--max-line-length=143 --show-source --statistics
- run: pip install --editable .
- run: mypy --ignore-missing-imports --install-types --non-interactive .
- run: safety check