3 ms·
Except your usual configuration don't necessarily work for your pre-commit hooks. A prime example is mypy.
by wyuenho 4y ago
Except your usual configuration don't necessarily work for your pre-commit hooks. A prime example is mypy.
- js2 4y agoSure it can. The pre-commit tool is just a framework for running multiple hooks at commit time against just the files which are modified in that commit. You can configure those hooks however you want. You also don't have to run the hooks at pre-commit time. Just don't hook pre-commit into your checkout. The pre-commit tool can also be configured to run its checks at a different stages than, well, the pre-commit stage: https://pre-commit.com/#top_level-default_stages https://pre-commit.com/#top_level-default_stages