Commands for Testing: Necessary Details
Learn how to test pre-commit and track hooks
We'll cover the following...
Testing pre-commit
Now, it’s possible that the Sphinx developers change their output wording. In that case, pre-commit
will think we need to re-run the documentation, but it will still reject the commit. Clearly, there is still room for improvement here, but this will do for now.
Note that if one of the tests fails, the test script will exit with an error code. This ...