A pre-commit hook to run ChkTeX and/or lacheck to lint LaTeX files.
Add e.g. this to your .pre-commit-config.yaml:
- repo: https://github.com/joclement/latex-linters-hooks
rev: main # TODO replace with current rev
hooks:
- id: chktex
- id: lacheck
See .pre-commit-hooks.yaml for all hooks.