Pre-Commit HookΒΆ

The pre-commit hook located in scripts/pre_commit/ executes modified Tezt tests automatically. It looks for staged files (the default) or modified files (if --unstaged is passed) in tezt/tests and calls tezt on those files. This avoids pushing commits that will break the CI. It is also handy to execute the relevant subset of tests by calling ./scripts/pre_commit/ [--unstaged] manually.

Using the pre-commit hook requires an installed Python environment, as described in Python Environment.

We refer to the header of and its --help flag for additional instructions.