Add .pre-commit-config.yaml
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 30 Aug 2024 19:32:33 +0000 (15:32 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 9 Oct 2024 02:56:57 +0000 (22:56 -0400)
commitc9870f8ae6a2b863ebca3575919d2ac11eff6fc1
tree65375a35bc0894951f5fbe8e827a4fcb41ec3505
parent12632abf9d38a8b2dd36c2b05fc6af56fb7de747
Add .pre-commit-config.yaml

This can help catch problems a bit earlier than in the CI.

To use it, a developer would run `pre-commit` in the source repository.
This installs git commit hooks that will run the checks described by
`.pre-commit-config.yaml` on the modified files.

It is possible to run the checks on all files with:

    $ pre-commit run --all-files
    black....................................................................Passed
    flake8...................................................................Passed
    isort....................................................................Passed

Change-Id: I695f0b0f2fea3adadae132ceb708928db3217e0c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13202
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
.pre-commit-config.yaml [new file with mode: 0644]
This page took 0.029712 seconds and 4 git commands to generate.