Skip to content

Commit 1ea08cd

Browse files
committed
chore: replace pre-commit with prek
1 parent 953d20b commit 1ea08cd

3 files changed

Lines changed: 261 additions & 298 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
31
repos:
42
- repo: https://github.com/pre-commit/pre-commit-hooks
53
rev: v6.0.0
64
hooks:
75
- id: check-ast
6+
7+
- repo: builtin
8+
hooks:
89
- id: trailing-whitespace
910
- id: check-toml
1011
- id: end-of-file-fixer
1112

12-
- repo: https://github.com/asottile/add-trailing-comma
13-
rev: v4.0.0
14-
hooks:
15-
- id: add-trailing-comma
16-
1713
- repo: https://github.com/crate-ci/typos
18-
rev: v1.38.1
14+
rev: v1.50.2
1915
hooks:
2016
- id: typos
2117

@@ -29,6 +25,12 @@ repos:
2925
'--exclude-lines', 'amqp://guest:guest@localhost:5672',
3026
]
3127

28+
- repo: https://github.com/astral-sh/ruff-pre-commit
29+
rev: v0.16.7
30+
hooks:
31+
- id: ruff-check
32+
args: [ "--fix", "taskiq", "tests", "docs/examples" ]
33+
3234
- repo: local
3335
hooks:
3436
- id: black
@@ -37,19 +39,6 @@ repos:
3739
language: system
3840
types: [python]
3941

40-
- id: ruff
41-
name: Run ruff lints
42-
entry: uv run ruff
43-
language: system
44-
pass_filenames: false
45-
types: [python]
46-
args:
47-
- "check"
48-
- "--fix"
49-
- "taskiq"
50-
- "tests"
51-
- "docs/examples"
52-
5342
- id: mypy
5443
name: Validate types with MyPy
5544
entry: uv run mypy

‎pyproject.toml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,24 @@ zmq = ["pyzmq>=26"]
6969

7070
[dependency-groups]
7171
dev = [
72-
"black>=25.11.0",
73-
"coverage>=7.11.3",
74-
"freezegun>=1.5.5",
72+
"prek>=0.5.3",
7573
# type check
7674
"mypy>=1.18.2",
77-
"opentelemetry-test-utils (>=0.59b0,<1)",
78-
"polyfactory>=3.1.0",
79-
"pre-commit>=4.4.0",
8075
# test
8176
"pytest>=9.0.1",
8277
"pytest-cov>=7.0.0",
8378
"pytest-xdist[psutil]>=3.8.0",
79+
"coverage>=7.11.3",
80+
"freezegun>=1.5.5",
81+
"polyfactory>=3.1.0",
82+
"opentelemetry-test-utils (>=0.59b0,<1)",
8483
# lint
85-
"ruff>=0.16.5",
84+
"ruff>=0.16.7",
85+
"black>=26.5.1",
8686
# tests with all python versions
87-
"tox>=4.32.0",
88-
"tox-uv>=1.29.0",
89-
"tzdata>=2025.2; sys_platform == 'win32'"
87+
"tox>=4.61.4",
88+
"tox-uv>=1.36.0",
89+
"tzdata>=2026.4; sys_platform == 'win32'",
9090
]
9191

9292
[build-system]

0 commit comments

Comments
 (0)