Skip to content

Commit

Permalink
Lint with ruff to replace bandit, flake8, isort, pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and auvipy committed Aug 29, 2023
1 parent af7c6aa commit b216ce1
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/lint_python.yml
Expand Up @@ -8,20 +8,15 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
check-latest: true
- run: pip install --upgrade pip setuptools wheel
- run: pip install bandit black codespell flake8 flake8-2020 flake8-bugbear
flake8-comprehensions isort mypy pytest pyupgrade safety
- run: bandit --recursive --skip B101,B105,B106,B107,B324 .
- run: pip install black codespell mypy pytest ruff safety
- run: ruff --format=github .
- run: black --check . || true
- run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
--show-source --statistics
- run: isort --check-only --profile black . || true
- run: pip install -r requirements.txt || pip install --editable . || true
- run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- run: pip install -r requirements-test.txt
- run: pip install --editable .
- run: mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
- run: pytest
- run: safety check

0 comments on commit b216ce1

Please sign in to comment.