Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/reusable-cookie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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)"
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/guides/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/guides/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
```
Expand Down
3 changes: 1 addition & 2 deletions src/sp_repo_review/checks/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down
Loading