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
6 changes: 3 additions & 3 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.11.13"
rev: "v0.12.1"
hooks:
- id: ruff-check
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.16.0"
rev: "v1.16.1"
hooks:
- id: mypy
files: "(src|tests)"
Expand All @@ -59,7 +59,7 @@ repos:
- types-PyYAML

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.3"
rev: "v3.6.2"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand Down
14 changes: 7 additions & 7 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.11.13"
rev: "v0.12.1"
hooks:
# id: ruff-check 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.11.13"
rev: "v0.12.1"
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -391,7 +391,7 @@ the flake8 addition for pre-commit, with the `bugbear` plugin:

```yaml
- repo: https://github.com/pycqa/flake8
rev: "7.2.0"
rev: "7.3.0"
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
Expand Down Expand Up @@ -534,7 +534,7 @@ The MyPy addition for pre-commit:

```yaml
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.16.0"
rev: "v1.16.1"
hooks:
- id: mypy
files: src
Expand Down Expand Up @@ -744,7 +744,7 @@ following pre-commit config:

```yaml
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v20.1.6"
rev: "v20.1.7"
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down Expand Up @@ -773,7 +773,7 @@ number of different file types. An example of usage:

```yaml
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.3"
rev: "v3.6.2"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand Down Expand Up @@ -821,7 +821,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.33.0"
rev: "0.33.1"
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
10 changes: 5 additions & 5 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.3"
rev: "v3.6.2"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.13"
rev: "v0.12.1"
hooks:
- id: ruff-check
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: "v20.1.6"
rev: "v20.1.7"
hooks:
- id: clang-format
types_or: [c++, c, cuda]

{%- endif %}

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

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