-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy path.pre-commit-config.yaml
124 lines (118 loc) · 2.64 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
ci:
autofix_prs: true
autoupdate_schedule: weekly
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
skip:
- uv-lock
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
exclude: |
(?x)^(
.*/launch.json
)$
- id: check-toml
exclude: |
(?x)^(
cookiecutter/.*/pyproject.toml
)$
- id: check-yaml
exclude: |
(?x)^(
cookiecutter/.*/meltano.yml|
cookiecutter/.*/.pre-commit-config.yaml|
cookiecutter/.*/dependabot.yml|
cookiecutter/.*/build.yml|
cookiecutter/.*/test.yml
)$
- id: end-of-file-fixer
exclude: |
(?x)^(
cookiecutter/.*|
docs/.*|
samples/.*\.json|
tests/snapshots/.*
)$
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.2
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
exclude: |
(?x)^(
cookiecutter/.*
)$
- id: ruff-format
exclude: |
(?x)^(
cookiecutter/.*
)$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.2
hooks:
- id: uv-lock
- id: uv-sync
- id: uv-export
name: Export docs requirements
args:
- "--no-emit-project"
- "--frozen"
- "--no-dev"
- "--group"
- "docs"
- "--output-file"
- "requirements/requirements.docs.txt"
- id: uv-export
name: Export package requirements, including extras
args:
- "--no-emit-project"
- "--frozen"
- "--all-extras"
- "--no-dev"
- "--output-file"
- "requirements/requirements.txt"
- id: uv-export
name: Export testing requirements
args:
- "--no-emit-project"
- "--frozen"
- "--only-group"
- "testing"
- "--output-file"
- "requirements/requirements.test.txt"
- id: uv-export
name: Export typing requirements
args:
- "--no-emit-project"
- "--frozen"
- "--only-group"
- "typing"
- "--output-file"
- "requirements/requirements.typing.txt"
- id: uv-export
name: Export Codspeed requirements
args:
- "--no-editable"
- "--frozen"
- "--no-hashes"
- "--no-dev"
- "--all-extras"
- "--group"
- "benchmark"
- "--output-file"
- "requirements/requirements.codspeed.txt"
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell