pre-commit

This commit is contained in:
Aminda Suomalainen ⚧ 2023-05-09 13:24:37 +03:00
parent bc14448c9b
commit ab667a0208
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
9 changed files with 31 additions and 8 deletions

View File

@ -8,7 +8,7 @@ charset = utf-8
indent_style = tab
indent_size = tab
[*.{markdown,md}]
[*.{markdown,md,tex}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

1
.gitignore vendored
View File

@ -300,4 +300,3 @@ TSWLatexianTemp*
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored.
#*Notes.bib

30
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,30 @@
ci:
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
# the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
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-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude_types: [tsv, markdown]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
hooks:
- id: prettier
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"
hooks:
- id: editorconfig-checker
alias: ec
args: [-disable-max-line-length]

View File

@ -48,4 +48,3 @@ Phone: 555-555-5555
\end{center}
\end{document}

View File

@ -37,4 +37,3 @@ Phone: 555-555-5555
\end{center}
\end{document}

View File

@ -41,4 +41,3 @@ President, Feline Friends Association
\end{center}
\end{document}

View File

@ -49,4 +49,3 @@ Website: www.humanrights.org
\end{center}
\end{document}

View File

@ -44,4 +44,3 @@
\end{itemize}
\end{document}

View File

@ -53,4 +53,3 @@ Phone: 555-555-5555
\end{center}
\end{document}