Skip to content

Commit

Permalink
Merge pull request #233 from Neo23x0/lint_python_update
Browse files Browse the repository at this point in the history
Replace flake8, isort, and pyupgrade with ruff
  • Loading branch information
Neo23x0 authored Apr 24, 2023
2 parents 96c6c50 + c8d939b commit 9dbe018
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install black codespell flake8 isort mypy pytest pyupgrade safety
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install --upgrade pip setuptools wheel
- run: pip install black codespell mypy pytest ruff safety
- run: ruff --format=github --ignore=E501,E701,E713,E722,F401,F403,F405,F841 --line-length=263 .
- run: black --check . || true
- run: codespell --ignore-words-list="datas" --skip="./.git/*"
- run: flake8 . --count --exit-zero --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
- run: mypy --install-types --non-interactive . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: python ./loki.py --noprocs --noindicator --dontwait --debug -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --intense -p ./test
- run: python ./loki.py --noprocs --noindicator --dontwait --debug --csv -p ./test
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
- run: safety check
# - run: safety check

0 comments on commit 9dbe018

Please sign in to comment.