diff options
author | Peter Johanson <[email protected]> | 2024-11-08 12:53:33 -0700 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-11-12 18:39:27 -0700 |
commit | 14c6fb74ee1b2c19a89ebdc14eeedd0b203dd2d3 (patch) | |
tree | ae51149802cac8a82e91555a61313a3a12f84aea /.pre-commit-config.yaml | |
parent | b0f5789b128f0f5599341398898fdb0e0407b2d3 (diff) | |
download | zmk-14c6fb74ee1b2c19a89ebdc14eeedd0b203dd2d3.tar.gz zmk-14c6fb74ee1b2c19a89ebdc14eeedd0b203dd2d3.zip |
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 <[email protected]>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
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: + - 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: |