summaryrefslogtreecommitdiffstats
path: root/.pre-commit-hooks.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:10 +0000
commita85f3954a8fe112640c2c35da3228be29b17c97c (patch)
tree7ee43f79639ee53903e7ca389e548974e1497c3a /.pre-commit-hooks.yaml
parentInitial commit. (diff)
downloadgitlint-1e1ae032984cf77885b458e0080a29ddc25f50b4.tar.xz
gitlint-1e1ae032984cf77885b458e0080a29ddc25f50b4.zip
Adding upstream version 0.18.0.upstream/0.18.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.pre-commit-hooks.yaml')
-rw-r--r--.pre-commit-hooks.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
new file mode 100644
index 0000000..24fd745
--- /dev/null
+++ b/.pre-commit-hooks.yaml
@@ -0,0 +1,16 @@
+- id: gitlint
+ name: gitlint
+ description: Checks your git commit messages for style.
+ language: python
+ additional_dependencies: ["./gitlint-core[trusted-deps]"]
+ entry: gitlint
+ args: [--staged, --msg-filename]
+ stages: [commit-msg]
+- id: gitlint-ci
+ name: gitlint
+ language: python
+ additional_dependencies: ["./gitlint-core[trusted-deps]"]
+ entry: gitlint
+ always_run: true
+ pass_filenames: false
+ stages: [manual]