Commit Graph

9 Commits

Author SHA1 Message Date
Alex Turbov
54eba3a42a
pre-commit: Add the codespell hook
Also, use it to spellcheck commit messages.
2025-01-26 05:38:52 +04:00
Alex Turbov
244e3d314c
pre-commit: Add the sphinx-lint hook 2025-01-26 05:34:18 +04:00
Alex Turbov
efa7c6aedf
pre-commit: Add a hook to check whitespaces and conflict markers
The hook uses settings from `.gitattributes`.
2025-01-26 05:34:18 +04:00
Alex Turbov
2c06b9f429
pre-commit: Add a hook to fix missed EOL at the end of files
For now some files from `Tests/` have been excluded. However,
some files could be really fixed and removed from exclude list.
2025-01-26 05:34:18 +04:00
Alex Turbov
1861948755
pre-commit: Add a hook to check JSON files 2025-01-26 05:34:17 +04:00
Alex Turbov
4b34c07205
pre-commit: Add a hook to check YAML files 2025-01-26 05:34:17 +04:00
Alex Turbov
3a73e1b8f4
pre-commit: Add a hook to strip trailing whitespaces on commit 2025-01-26 05:34:17 +04:00
Alex Turbov
8e832f0084
pre-commit: Add a hook to check files for mixed line endings 2025-01-26 05:34:17 +04:00
Alex Turbov
de59765336
pre-commit: Add an initial configuration file
Add (except some meta-hooks) the `check-case-conflict` hook to
make sure the repo don't contain files that can cause a conflict
on case-insensitive filesystems.

Also, exclude third-party sources from further checks.
2025-01-26 05:34:15 +04:00