Skip to content

Commit 7d2144b

Browse files
chore(deps): bump versions (#532)
* [create-pull-request] automated change * style: pre-commit fixes --------- Co-authored-by: scientific-python-pr-tokenbot[bot] <181030687+scientific-python-pr-tokenbot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ab6f562 commit 7d2144b

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
additional_dependencies: [black==24.*]
3030

3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: "v0.8.6"
32+
rev: "v0.9.0"
3333
hooks:
3434
- id: ruff
3535
args: ["--fix", "--show-fixes"]

docs/pages/guides/style.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Here is the snippet to add the formatter to your `.pre-commit-config.yml`
111111

112112
```yaml
113113
- repo: https://github.com/astral-sh/ruff-pre-commit
114-
rev: "v0.8.4"
114+
rev: "v0.9.0"
115115
hooks:
116116
# id: ruff would go here if using both
117117
- id: ruff-format
@@ -201,7 +201,7 @@ pre-commit hook.
201201
202202
```yaml
203203
- repo: https://github.com/astral-sh/ruff-pre-commit
204-
rev: "v0.8.4"
204+
rev: "v0.9.0"
205205
hooks:
206206
- id: ruff
207207
args: ["--fix", "--show-fixes"]
@@ -350,7 +350,7 @@ use the manual stage, it's opt-in instead of automatic.
350350

351351
```yaml
352352
- repo: https://github.com/hadialqattan/pycln
353-
rev: "v2.4.0"
353+
rev: "v2.5.0"
354354
hooks:
355355
- id: pycln
356356
args: [--all]
@@ -533,7 +533,7 @@ The MyPy addition for pre-commit:
533533

534534
```yaml
535535
- repo: https://github.com/pre-commit/mirrors-mypy
536-
rev: "v1.14.0"
536+
rev: "v1.14.1"
537537
hooks:
538538
- id: mypy
539539
files: src
@@ -745,7 +745,7 @@ following pre-commit config:
745745

746746
```yaml
747747
- repo: https://github.com/pre-commit/mirrors-clang-format
748-
rev: "v19.1.5"
748+
rev: "v19.1.6"
749749
hooks:
750750
- id: clang-format
751751
types_or: [c++, c, cuda]
@@ -822,7 +822,7 @@ schemas, and you can load them via URL. It work on JSON, YAML, and TOML.
822822

823823
```yaml
824824
- repo: https://github.com/python-jsonschema/check-jsonschema
825-
rev: "0.30.0"
825+
rev: "0.31.0"
826826
hooks:
827827
- id: check-dependabot
828828
- id: check-github-workflows

src/sp_repo_review/checks/ruff.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,9 @@ class RF201(RF2xx):
174174
@staticmethod
175175
def iter_check(ruff: dict[str, Any]) -> Generator[str, None, None]:
176176
match ruff:
177-
case (
178-
{"extend-unfixable": object()}
179-
| {"lint": {"extend-unfixable": object()}}
180-
):
177+
case {"extend-unfixable": object()} | {
178+
"lint": {"extend-unfixable": object()}
179+
}:
181180
yield "`extend-unfixable` deprecated, use `unfixable` instead (identical)"
182181
case {"extend-ignore": object()} | {"lint": {"extend-ignore": object()}}:
183182
yield "`extend-ignore` deprecated, use `ignore` instead (identical)"

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
args: [--prose-wrap=always]
4343

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: "v0.8.4"
45+
rev: "v0.9.0"
4646
hooks:
4747
- id: ruff
4848
args: ["--fix", "--show-fixes"]
@@ -51,15 +51,15 @@ repos:
5151
{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}
5252

5353
- repo: https://github.com/pre-commit/mirrors-clang-format
54-
rev: "v19.1.5"
54+
rev: "v19.1.6"
5555
hooks:
5656
- id: clang-format
5757
types_or: [c++, c, cuda]
5858

5959
{%- endif %}
6060

6161
- repo: https://github.com/pre-commit/mirrors-mypy
62-
rev: "v1.14.0"
62+
rev: "v1.14.1"
6363
hooks:
6464
- id: mypy
6565
files: src|tests
@@ -101,7 +101,7 @@ repos:
101101
additional_dependencies: ["validate-pyproject-schema-store[all]"]
102102

103103
- repo: https://github.com/python-jsonschema/check-jsonschema
104-
rev: "0.30.0"
104+
rev: "0.31.0"
105105
hooks:
106106
{%- if cookiecutter.__ci == "github" %}
107107
- id: check-dependabot

0 commit comments

Comments
 (0)