-
-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (44 loc) · 1.12 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
50 lines (44 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- repo: builtin
hooks:
- id: trailing-whitespace
- id: check-toml
- id: end-of-file-fixer
- repo: https://github.com/crate-ci/typos
rev: v1.50.2
hooks:
- id: typos
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [
'--exclude-files', 'pnpm-lock.yaml',
'--exclude-files', 'docs/README.md',
'--exclude-lines', 'amqp://guest:guest@localhost:5672',
]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.7
hooks:
- id: ruff-check
args: [ "taskiq", "tests", "docs/examples" ]
- repo: local
hooks:
- id: black
name: Format with Black
entry: uv run black
language: system
types: [python]
- id: mypy
name: Validate types with MyPy
entry: uv run mypy
language: system
pass_filenames: false
types: [python]
args:
- ./taskiq
- ./tests