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
2 changes: 1 addition & 1 deletion .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.8.6"
rev: "v0.9.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
12 changes: 6 additions & 6 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.8.4"
rev: "v0.9.0"
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.8.4"
rev: "v0.9.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -350,7 +350,7 @@ use the manual stage, it's opt-in instead of automatic.

```yaml
- repo: https://github.com/hadialqattan/pycln
rev: "v2.4.0"
rev: "v2.5.0"
hooks:
- id: pycln
args: [--all]
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.0"
rev: "v1.14.1"
hooks:
- id: mypy
files: src
Expand Down Expand Up @@ -745,7 +745,7 @@ following pre-commit config:

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

```yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.30.0"
rev: "0.31.0"
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
7 changes: 3 additions & 4 deletions src/sp_repo_review/checks/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ class RF201(RF2xx):
@staticmethod
def iter_check(ruff: dict[str, Any]) -> Generator[str, None, None]:
match ruff:
case (
{"extend-unfixable": object()}
| {"lint": {"extend-unfixable": object()}}
):
case {"extend-unfixable": object()} | {
"lint": {"extend-unfixable": object()}
}:
yield "`extend-unfixable` deprecated, use `unfixable` instead (identical)"
case {"extend-ignore": object()} | {"lint": {"extend-ignore": object()}}:
yield "`extend-ignore` deprecated, use `ignore` instead (identical)"
Expand Down
8 changes: 4 additions & 4 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.8.4"
rev: "v0.9.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -51,15 +51,15 @@ repos:
{%- if cookiecutter.backend in ["pybind11", "skbuild", "mesonpy"] %}

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

{%- endif %}

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.14.0"
rev: "v1.14.1"
hooks:
- id: mypy
files: src|tests
Expand Down Expand Up @@ -101,7 +101,7 @@ repos:
additional_dependencies: ["validate-pyproject-schema-store[all]"]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.30.0"
rev: "0.31.0"
hooks:
{%- if cookiecutter.__ci == "github" %}
- id: check-dependabot
Expand Down
Loading