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 .