Skip to content

Commit

Permalink
Replace flake8 and isort with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Dec 8, 2024
1 parent 2a5cae2 commit 5feb95d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,21 @@ jobs:
- name: Upload reports to Codecov
if: ${{ matrix.python == '3.13' }}
run: codecov
static-analysis:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install flake8, isort and mypy
run: |
python -m pip install flake8 isort mypy
python -m pip install types-docutils types-PyYAML types-Markdown
- name: Run flake8
run: flake8 --max-line-length=88 .
- name: Run isort
run: isort --check-only .
- name: Install mypy and type stubs
run: python -m pip install mypy types-docutils types-PyYAML types-Markdown
- name: Run mypy
run: mypy --ignore-missing-imports --strict .
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install ruff
run: python -m pip install ruff
- name: Run ruff
run: ruff check --select F,E,W,I,UP --target-version py310 .

0 comments on commit 5feb95d

Please sign in to comment.