-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
57 lines (54 loc) · 1.56 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
ci:
autoupdate_commit_msg: "chore: [pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: monthly
skip: [biber-autoformat,cleveref-capitalization,unique-labels]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
- id: debug-statements
- id: end-of-file-fixer
# exclude generated files
exclude: ^validation/|\.dtd$|\.json$|\.xml|\.bib$
- id: mixed-line-ending
- id: name-tests-test
args: ["--pytest-test-first"]
- id: requirements-txt-fixer
- id: trailing-whitespace
files: ".*\\.(?:tex|py)$"
# exclude generated files
exclude: ^validation/|\.dtd$|\.xml$
- repo: https://github.com/jonasbb/pre-commit-latex-hooks
rev: v1.4.0
hooks:
- id: american-eg-ie
- id: consistent-spelling
args:
[
"--emph=et al.",
"--emph=a priori",
"--emph=a posteriori",
'--regex=naive=\bna(i|\\"i)ve',
]
- id: csquotes
- id: ensure-labels-for-sections
- id: no-space-in-cite
- id: tilde-cite
- id: unique-labels
- id: cleveref-instead-of-autoref
- repo: https://github.com/katrielalex/biber-formatter
rev: v1.1
hooks:
- id: biber-autoformat
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.20.4
hooks:
- id: latexindent