From 5feb95d5701802f22c3c72e4c81375c60f7bc889 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sun, 8 Dec 2024 19:33:26 +0300 Subject: [PATCH] Replace flake8 and isort with ruff --- .github/workflows/main.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a54f9af..d59f4cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 .