Skip to content

Commit 4f68dd2

Browse files
Update pre-commit hooks and their versions
- Remove flake8 and black, add ruff - No .clang-format file exists anymore - Use regular shellcheck Update pre-commit hook versions
1 parent 462decb commit 4f68dd2

2 files changed

Lines changed: 11 additions & 20 deletions

File tree

.flake8

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,50 @@ default_language_version:
33
python: "3.13"
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: "v5.0.0"
6+
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0
77
hooks:
88
- id: check-case-conflict
99
- id: check-merge-conflict
1010
- id: check-symlinks
1111
- id: check-yaml
12-
exclude: .clang-format
1312
- id: debug-statements
1413
- id: end-of-file-fixer
1514
- id: mixed-line-ending
1615
- id: trailing-whitespace
1716

1817
- repo: https://github.com/asottile/pyupgrade
19-
rev: "v3.19.1"
18+
rev: "75992aaa40730136014f34227e0135f63fc951b4" # frozen: v3.21.2
2019
hooks:
2120
- id: pyupgrade
2221
args: ["--py312-plus"]
2322

2423
- repo: https://github.com/hadialqattan/pycln
25-
rev: "v2.5.0"
24+
rev: "c722dfaa45d90314cd1ad726bb561894321b278d" # frozen: v2.6.0
2625
hooks:
2726
- id: pycln
2827
args: [--config=pyproject.toml]
2928
stages: [manual]
3029

31-
- repo: https://github.com/psf/black
32-
rev: "25.1.0"
30+
- repo: https://github.com/astral-sh/ruff-pre-commit
31+
rev: "0671d8ab202c4ac093b78433ae5baf74f3fc7246" # frozen: v0.15.15
3332
hooks:
34-
- id: black
35-
36-
- repo: https://github.com/pycqa/flake8
37-
rev: "7.2.0"
38-
hooks:
39-
- id: flake8
40-
additional_dependencies: [flake8-bugbear]
33+
- id: ruff-check
34+
args: [--fix, --exit-non-zero-on-fix]
35+
- id: ruff-format
4136

4237
- repo: https://github.com/pre-commit/mirrors-mypy
4338
rev: "v1.15.0"
4439
hooks:
4540
- id: mypy
4641
exclude: auditwheel_emscripten/emscripten_tools
4742

48-
- repo: https://github.com/shellcheck-py/shellcheck-py
49-
rev: "v0.10.0.1"
43+
- repo: https://github.com/koalaman/shellcheck-precommit
44+
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # frozen: v0.11.0
5045
hooks:
5146
- id: shellcheck
5247

5348
- repo: https://github.com/codespell-project/codespell
54-
rev: "v2.4.1"
49+
rev: "2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a" # frozen: v2.4.2
5550
hooks:
5651
- id: codespell
5752
args: ["-L", "te,slowy,aray,ba,nd,classs,crate,feld,lits"]

0 commit comments

Comments
 (0)