Add latexindent config and update hooks

This commit is contained in:
Anton Mosich 2023-01-09 12:29:46 +01:00
parent af89ca8f3c
commit 19606d24e0
Signed by: Flugschwein
GPG Key ID: 9303E1C32E3A14A0
2 changed files with 17 additions and 1 deletions

15
.latexindent.yaml Normal file
View File

@ -0,0 +1,15 @@
onlyOneBackup: 1
indentPreamble: 1
modifyLineBreaks:
preserveBlankLines: 1
condenseMultipleBlankLinesInto: 1
textWrapOptions:
columns: 80
multipleSpacesToSingle: 1
environments:
DBSFinishesWithLineBreak: 1
BeginStartsOnOwnLine: 1
BodyStartsOnOwnLine: 1
EndStartsOnOwnLine: 1
EndFinishesWithLineBreak: 1

View File

@ -9,6 +9,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.19.1
rev: V3.20.1
hooks:
- id: latexindent
args: ["-s", "-l", "--overwriteIfDifferent", "-m"]