From 14c6fb74ee1b2c19a89ebdc14eeedd0b203dd2d3 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Fri, 8 Nov 2024 12:53:33 -0700 Subject: ci: Add gitlint and document commit conventions * Add gitlint to pre-commit setup * Update pre-commit setup for installing commit-hooks * Add "Commit Conventions" contributing docs Co-authored-by: Cem Aksoylar --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 352ad72327..1c6d560cef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: rev: v1.5.1 hooks: - id: remove-tabs - exclude: "vendor-prefixes\\.txt$" + exclude: "vendor-prefixes\\.txt$|.git/COMMIT_EDITMSG" - repo: https://github.com/pre-commit/mirrors-clang-format rev: v18.1.8 hooks: @@ -16,9 +16,14 @@ repos: rev: v2.7.1 hooks: - id: prettier + exclude: ".git/COMMIT_EDITMSG" # Workaround for https://github.com/pre-commit/mirrors-prettier/issues/29 additional_dependencies: - prettier@2.8.7 + - repo: https://github.com/jorisroovers/gitlint + rev: v0.19.1 + hooks: + - id: gitlint - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: -- cgit v1.2.3