-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.09 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.4
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix, --config=pyproject.toml ]
stages: [ pre-commit, manual ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
args: [ --config=pyproject.toml ]
stages: [ pre-commit, manual ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
args: [ --config-file=pyproject.toml ]
additional_dependencies:
- types-python-dateutil
- types-setuptools
- types-toml
- types-typed-ast
- types-orjson
files: "src/.*"
stages: [ pre-commit, manual ]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.26
hooks:
- id: uv-sync
args: ["--locked", "--all-packages"]
stages:
- pre-commit
- post-checkout
- post-merge
- post-rewrite