Adding pre-commit latex
This commit is contained in:
parent
d64109b2a3
commit
031ead0aab
1 changed files with 27 additions and 0 deletions
27
.pre-commit-config.yaml
Normal file
27
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
repos:
|
||||
- repo: https://github.com/jonasbb/pre-commit-latex-hooks
|
||||
rev: v1.4.0
|
||||
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
|
||||
- id: unique-labels
|
||||
- id: cleveref-instead-of-autoref
|
||||
- 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)$"
|
||||
Loading…
Add table
Reference in a new issue