🔀 Merge pull request #218 from ezeparziale/… #870
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.12.x | |
- run: pip install --upgrade pip wheel | |
- run: pip install bandit black codespell ruff isort mypy pytest pyupgrade safety pydantic | |
- name: Lint | |
run: bash scripts/lint.sh | |
- run: bandit --recursive --skip B101,B105 . # B101 is assert statements, B105 for token URL | |
# - run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock" | |
- run: pip install -r requirements.txt || pip install --editable . || pip install . | |
- run: mkdir --parents --verbose .mypy_cache | |
- run: mypy --ignore-missing-imports --install-types --non-interactive . | |
- run: pytest . || true | |
- run: pytest --doctest-modules . || true | |
# - run: shopt -s globstar && pyupgrade --py311-plus **/*.py | |
# - run: safety check |