Skip to content

Commit 2f10e18

Browse files
authored
Update pre-commit hooks to latest versions (Project-MONAI#8693)
This pull request updates the `.pre-commit-config.yaml` file to use newer versions of several pre-commit hooks, ensuring the codebase benefits from the latest features and bug fixes. It also switches the Ruff hook to a newer recommended id. Pre-commit hook version upgrades: * Upgraded `pre-commit-hooks` from `v5.0.0` to `v6.0.0` for improved linting and formatting checks. * Upgraded `ruff-pre-commit` from `v0.7.0` to `v0.14.11` and changed the hook id from `ruff` to `ruff-check` to align with the latest configuration recommendations. * Upgraded `pycln` from `v2.5.0` to `v2.6.0` for more robust import cleaning. cc: @ericspod Signed-off-by: jirka <jirka.borovec@seznam.cz>
1 parent 49fede4 commit 2f10e18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v5.0.0
12+
rev: v6.0.0
1313
hooks:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
@@ -27,9 +27,9 @@ repos:
2727
- id: end-of-file-fixer
2828
- id: mixed-line-ending
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.7.0
30+
rev: v0.14.11
3131
hooks:
32-
- id: ruff
32+
- id: ruff-check
3333
args: ["--fix"]
3434
exclude: |
3535
(?x)(
@@ -55,7 +55,7 @@ repos:
5555
)$
5656
5757
- repo: https://github.com/hadialqattan/pycln
58-
rev: v2.5.0
58+
rev: v2.6.0
5959
hooks:
6060
- id: pycln
6161
args: [--config=pyproject.toml]

0 commit comments

Comments
 (0)