Git pre-commit: Add barebones config file#125
Git pre-commit: Add barebones config file#125netravnen wants to merge 1 commit intopierky:masterfrom
Conversation
|
Git pre-commit add the possibility to introduce project specific pre-commit checks out of the box locally on the endhost of the developer/user committing changes to their own fork of the repository. This has the benefit of some standard checks having been before a PR is ever opened. |
|
@pierky do you think this suggestion is worth adding? |
|
Hi @netravnen, I like the idea, however after I tested it I see that a lot of files would be modified because of several "inconsistencies". Most of the files identified by the precommit hooks are those which are generate automatically via Jinja2 templates, where having a wrong trailing space is pretty common (at least given the way they are built today). Also some YAML files which are purposely wrong are caught by the hooks. If we want to keep the linters are you suggested, we would need to add some |
|
Narrowing the scope to core files would be a good start. Causing the least friction. Will update the branch with this suggestion. |
https://pre-commit.com/