Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
195 lines (195 loc) · 4.92 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
195 lines (195 loc) · 4.92 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
---
fail_fast: false
ci:
autofix_prs: false
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: trailing-whitespace
exclude: |
(?x)(
\.bpa$|
\.bpaspin$|
\.cube$|
\.in$|
\.inp$|
\.molden$|
\.out$|
^data/ADF|
^data/CFOUR|
^data/DALTON|
^data/FChk|
^data/GAMESS|
^data/Gaussian|
^data/Jaguar|
^data/Molcas|
^data/Molpro|
^data/MOPAC|
^data/NBO|
^data/NWChem|
^data/ORCA|
^data/Psi4|
^data/QChem|
^data/regression|
^data/Serenity|
^data/Turbomole|
^data/XTB
)
- id: end-of-file-fixer
exclude: |
(?x)(
\.bpa$|
\.bpaspin$|
\.cube$|
\.in$|
\.inp$|
\.molden$|
\.out$|
^data/ADF|
^data/CFOUR|
^data/DALTON|
^data/FChk|
^data/GAMESS|
^data/Gaussian|
^data/Jaguar|
^data/Molcas|
^data/Molpro|
^data/MOPAC|
^data/NBO|
^data/NWChem|
^data/ORCA|
^data/Psi4|
^data/QChem|
^data/regression|
^data/Serenity|
^data/Turbomole|
^data/XTB
)
- id: fix-byte-order-marker
exclude: |
(?x)(
\.bpa$|
\.bpaspin$|
\.cube$|
\.in$|
\.inp$|
\.molden$|
\.out$|
^data/ADF|
^data/CFOUR|
^data/DALTON|
^data/FChk|
^data/GAMESS|
^data/Gaussian|
^data/Jaguar|
^data/Molcas|
^data/Molpro|
^data/MOPAC|
^data/NBO|
^data/NWChem|
^data/ORCA|
^data/Psi4|
^data/QChem|
^data/regression|
^data/Serenity|
^data/Turbomole|
^data/XTB
)
- id: check-merge-conflict
- id: check-json
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.22
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: "v1.16.1"
# hooks:
# - id: mypy
# additional_dependencies:
# - numpy
# - packaging
# - pandas-stubs
# - pytest
# # - scipy
# - types-requests
# - types-setuptools
# - versioningit
# args: []
# exclude: |
# (?x)(
# ^test/
# )
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
files: \.py$
args:
- --license-filepath
- .github/license_header.txt
- --use-current-year
- --no-extra-eol
- id: remove-crlf
exclude: |
(?x)(
\.bpa$|
\.bpaspn$|
\.cube$|
\.in$|
\.inp$|
\.molden$|
\.out$|
^data/ADF|
^data/CFOUR|
^data/DALTON|
^data/FChk|
^data/GAMESS|
^data/Gaussian|
^data/Jaguar|
^data/Molcas|
^data/Molpro|
^data/MOPAC|
^data/NBO|
^data/NWChem|
^data/ORCA|
^data/Psi4|
^data/QChem|
^data/regression|
^data/Turbomole|
^data/XTB
)
- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.10.0"
hooks:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v1.7.3
hooks:
- id: tombi-format
# Requires https://github.com/cclib/cclib/pull/1775
# - id: tombi-lint
- repo: https://github.com/google/yamlfmt
rev: "v0.21.0"
hooks:
- id: yamlfmt
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
additional_dependencies:
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.11.1"
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: "v1.29.0"
hooks:
- id: zizmor
args: [--no-progress, --persona=pedantic, --fix=all]