diff --git a/.github/workflows/reusable-cookie.yml b/.github/workflows/reusable-cookie.yml index 94cbb511..132f0a2a 100644 --- a/.github/workflows/reusable-cookie.yml +++ b/.github/workflows/reusable-cookie.yml @@ -46,7 +46,6 @@ jobs: run: uv tool install nox - name: Test pybind11 - if: matrix.python-version != 'pypy-3.9' run: nox -s 'tests(pybind11, novcs)' -s 'tests(pybind11, vcs)' - name: Test scikit-build @@ -71,10 +70,12 @@ jobs: run: nox -s 'tests(setuptools, novcs)' -s 'tests(setuptools, vcs)' - name: Native poetry tooling - run: nox -s 'native(poetry, novcs)' -s 'native(poetry, vcs)' + if: matrix.python-version != 'pypy-3.10' + run: | + nox -s 'native(poetry, novcs)' + nox -s 'native(poetry, vcs)' - name: Native pdm tooling - run: nox -s 'native(pdm, novcs)' -s 'native(pdm, vcs)' - name: Activate MSVC for Meson diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 21e28b74..a786ec13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: additional_dependencies: [black==24.*] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.4" + rev: "v0.9.5" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -43,7 +43,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.14.1" + rev: "v1.15.0" hooks: - id: mypy files: "(src|tests)" diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index 87965ea1..9f3d9682 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -111,7 +111,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml` ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.4" + rev: "v0.9.5" hooks: # id: ruff would go here if using both - id: ruff-format @@ -201,7 +201,7 @@ pre-commit hook. ```yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.4" + rev: "v0.9.5" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -533,7 +533,7 @@ The MyPy addition for pre-commit: ```yaml - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.14.1" + rev: "v1.15.0" hooks: - id: mypy files: src diff --git a/docs/pages/guides/tasks.md b/docs/pages/guides/tasks.md index 795abb7e..0fd70322 100644 --- a/docs/pages/guides/tasks.md +++ b/docs/pages/guides/tasks.md @@ -75,7 +75,7 @@ On GitHub Actions or Azure, pipx is available by default, so you should use action: ```yaml -- uses: wntrblm/nox@2024.10.09 +- uses: wntrblm/nox@2025.02.09 ``` You can now access all current versions of Python from nox. At least in GitHub @@ -84,7 +84,7 @@ your logs, or set `env: FORCE_COLOR: 3`[^force_color]. If you'd like to customize the versions of Python prepared for you, then use input like this: ```yaml -- uses: wntrblm/nox@2024.10.09 +- uses: wntrblm/nox@2025.02.09 with: python-versions: "3.9, 3.10, 3.11, 3.12, 3.13, pypy-3.10" ``` diff --git a/src/sp_repo_review/checks/ruff.py b/src/sp_repo_review/checks/ruff.py index 8b0cb532..d27bf5cc 100644 --- a/src/sp_repo_review/checks/ruff.py +++ b/src/sp_repo_review/checks/ruff.py @@ -98,8 +98,7 @@ def check(ruff: dict[str, Any], package: Traversable) -> bool | None: match ruff: case {"src": ["src"]}: - # See https://github.com/python/mypy/issues/16272 - return False # type: ignore[unreachable] + return False case _: return True diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index 87e26cdb..c2ca1b5c 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.4" + rev: "v0.9.5" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -59,7 +59,7 @@ repos: {%- endif %} - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.14.1" + rev: "v1.15.0" hooks: - id: mypy files: src|tests