-
Notifications
You must be signed in to change notification settings - Fork 13
23 lines (23 loc) · 837 Bytes
/
Copy pathlint_python.yml
File metadata and controls
23 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: lint_python
on: [pull_request, push]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install --upgrade pip wheel
- run: pip install -r test-requirements.txt
- run: bandit --recursive --skip B101 . # B101 is assert statements
- run: black --check .
- run: codespell --ignore-words-list="fo"
- run: flake8 . --count --max-complexity=12 --max-line-length=89 --show-source --statistics
- run: isort --check-only --profile black .
- run: |
pip install --editable .
mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive .
- run: pytest .
- run: safety scan