new feature: pre-commit now supported with latexindent.pl!
A massive thank you to @tdegeus for contributing this feature.
The feature is documented fully at https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#pre-commit; for reference see also #322 and #316
In brief, variations of the file .pre-commit-config.yaml in your .git repository as follows
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.15
hooks:
- id: latexindent
args: [-s]and then running
pre-commit run --all-files
will run latexindent.pl on all .tex files in your repository. There's a supported option for conda users also. Full details at https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#pre-commit