-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
158 lines (158 loc) · 4.01 KB
/
.pre-commit-config.yaml
File metadata and controls
158 lines (158 loc) · 4.01 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
repos:
- repo: https://github.com/dycw/pre-commit-hooks
rev: 0.14.138
hooks:
- id: add-hooks
args:
- --ci-github
- --description=Template for Python packages
- --prettier
- --python
- --python-package-name-external=dycw-template-python
- --python-package-name-internal=template-python
- --repo-name=template-python
- --toml
priority: 10
- id: add-future-import-annotations
priority: 20
- id: check-versions-consistent
priority: 40
- id: format-pre-commit-config
priority: 30
- id: format-requirements
priority: 30
- id: replace-sequence-str
priority: 20
- id: run-prek-autoupdate
priority: 10
- id: run-uv-lock
priority: 20
- id: run-version-bump
priority: 20
- id: setup-bump-my-version
args:
- --python-package-name-internal=template-python
priority: 20
- id: setup-ci-pull-request
args:
- --repo-name=template-python
priority: 20
- id: setup-ci-push
args:
- --python
priority: 20
- id: setup-coverage
priority: 20
- id: setup-direnv
args:
- --python
priority: 20
- id: setup-git
args:
- --python
priority: 20
- id: setup-pre-commit
priority: 10
- id: setup-pyproject
args:
- --description=Template for Python packages
- --python-package-name-external=dycw-template-python
- --python-package-name-internal=template-python
priority: 20
- id: setup-pyright
priority: 20
- id: setup-pytest
args:
- --python-package-name-internal=template-python
priority: 20
- id: setup-readme
args:
- --repo-name=template-python
- --description=Template for Python packages
priority: 20
- id: setup-ruff
priority: 20
- id: update-ci-action-versions
priority: 20
- id: update-ci-extensions
priority: 20
- id: update-requirements
priority: 20
- repo: builtin
hooks:
- id: check-added-large-files
priority: 40
- id: check-case-conflict
priority: 40
- id: check-executables-have-shebangs
priority: 40
- id: check-json
priority: 40
- id: check-json5
priority: 40
- id: check-merge-conflict
priority: 40
- id: check-symlinks
priority: 40
- id: check-toml
priority: 40
- id: check-xml
priority: 40
- id: check-yaml
priority: 40
- id: detect-private-key
priority: 40
- id: end-of-file-fixer
priority: 20
- id: fix-byte-order-marker
priority: 20
- id: mixed-line-ending
args:
- --fix=lf
priority: 20
- id: no-commit-to-branch
priority: 40
- id: trailing-whitespace
priority: 20
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff-check
args:
- --fix
priority: 20
- id: ruff-format
priority: 30
- repo: https://github.com/compwa/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
args:
- --option
- indent_tables=true
- --option
- indent_entries=true
- --option
- reorder_keys=true
priority: 40
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-illegal-windows-names
priority: 40
- id: destroyed-symlinks
priority: 40
- id: pretty-format-json
args:
- --autofix
priority: 20
- repo: local
hooks:
- id: prettier
name: prettier
entry: npx prettier --write
language: unsupported
types_or:
- markdown
- yaml
priority: 30