Servant pattern #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- run: pip install black codespell flake8 isort mypy pytest pyupgrade tox | |
- run: black --check . | |
- run: codespell --quiet-level=2 # --ignore-words-list="" --skip="" | |
- run: flake8 . --count --show-source --statistics | |
- run: isort --profile black . | |
- run: tox | |
- run: pip install -e . | |
- run: mypy --ignore-missing-imports . || true | |
- run: pytest . | |
- run: pytest --doctest-modules . || true | |
- run: shopt -s globstar && pyupgrade --py37-plus **/*.py |