From c84e0d76b8af7b6e562ccf772c522187562b3bc9 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Tue, 20 Dec 2022 18:18:43 -0800 Subject: [PATCH] Added pre-commit for tex linter and formatter --- .gitignore | 5 +++++ .pre-commit-config.yaml | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index 2298e5d..e5a3115 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ +# Build artifacts result alejandro_resume.* !alejandro_resume.tex +# Editor settings .vim/ + +# latexindent logfile +indent.log diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae4a755..ca9d876 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,14 @@ repos: rev: 3.0.0 hooks: - id: alejandra-system + - repo: https://github.com/cmhughes/latexindent.pl + rev: V3.19.1 + hooks: + - id: latexindent + - repo: local + hooks: + - id: chktex + name: chktex + entry: chktex + language: system + types: [tex]