generated from rodluger/showyourwork-template
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
38 lines (38 loc) · 1.04 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
repos:
- repo: https://github.com/jonasbb/pre-commit-latex-hooks
rev: v1.2.3
hooks:
- id: american-eg-ie
- id: cleveref-capitalization
- 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
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: trailing-whitespace
files: ".*\\.(?:tex|py)$"
- repo: https://github.com/codespell-project/codespell
rev: v1.16.0
hooks:
- id: codespell
exclude: ^src/code-examples/minted.tex
files: ".*\\.(?:tex|py)$"
- repo: local
hooks:
- id: latexindent
name: latexindent
entry: "python scripts/latexindent.py"
language: system
pass_filenames: false