-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
88 lines (88 loc) · 2.38 KB
/
.pre-commit-config.yaml
File metadata and controls
88 lines (88 loc) · 2.38 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
repos:
- repo: local
hooks:
- id: check-added-large-files
name: check-added-large-files
entry: uv run check-added-large-files
language: system
- id: check-yaml
name: check-yaml
entry: uv run check-yaml
types:
- yaml
language: system
- id: check-toml
name: check-toml
entry: uv run check-toml
types:
- toml
language: system
- id: check-json
name: check-json
entry: uv run check-json
types:
- json
language: system
- id: pretty-format-json
name: pretty-format-json
entry: uv run pretty-format-json
types:
- json
language: system
- id: end-of-file-fixer
name: end-of-file-fixer
entry: uv run end-of-file-fixer
language: system
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: uv run trailing-whitespace-fixer
language: system
- id: uv-lock
name: uv-lock
entry: uv lock
language: system
pass_filenames: false
stages:
- post-checkout
- post-merge
- id: uv-sync
name: uv-sync
entry: uv sync --group dev
language: system
pass_filenames: false
stages:
- post-checkout
- post-merge
- id: codespell
name: codespell
entry: uv run codespell --toml pyproject.toml
files: \.(py|pyi)$
language: system
- id: ruff-format
name: ruff-format
entry: uv run ruff format --config pyproject.toml
files: \.(py|pyi)$
language: system
exclude: ^(features|scripts)/
- id: ruff
name: ruff
entry: uv run ruff check --config pyproject.toml --fix
files: \.(py|pyi)$
language: system
exclude: ^(features|scripts)/
- id: add-trailing-comma
name: add-trailing-comma
entry: uv run add-trailing-comma
files: \.(py|pyi)$
language: system
- id: validate-pyproject
name: validate-pyproject
entry: uv run validate-pyproject pyproject.toml
language: system
pass_filenames: false
- id: ty
name: ty
entry: uv run ty check
files: \.(py|pyi)$
language: system
exclude: ^(features|scripts)/