diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index a5145047..cf12418f 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -5,13 +5,21 @@ on: pull_request: branches: [master] jobs: - ruff: # https://beta.ruff.rs + ruff: # https://docs.astral.sh/ruff/editor-integrations/#github-actions runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: pip install --user "codespell[toml]" ruff - - run: codespell - - run: ruff --format=github . + - uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - run: | + python -m pip install --upgrade pip + pip install --user "codespell[toml]" ruff + - run: codespell + - run: ruff check . + env: + RUFF_FORMAT: github tox: needs: ruff @@ -19,7 +27,7 @@ jobs: fail-fast: false max-parallel: 6 matrix: - python: ['3.8', '3.9', '3.10', '3.11', 'pypy3.10'] + python: ["3.8", "3.9", "3.10", "3.11"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7faf960d..61543546 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - tomli - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.292 + rev: v0.1.0 hooks: - id: ruff @@ -49,6 +49,6 @@ repos: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.14 + rev: v0.15 hooks: - id: validate-pyproject