diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd734573..46d7da4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: trailing-whitespace - id: name-tests-test - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.3 + rev: v0.14.1 hooks: - id: ruff-check args: [ --fix ] @@ -31,9 +31,10 @@ repos: hooks: - id: codespell - repo: https://github.com/commit-check/commit-check - rev: v0.10.2 + rev: v2.0.0 hooks: - id: check-message + stages: [commit-msg] - id: check-branch # uncomment if you need. - id: check-author-name # uncomment if you need. - id: check-author-email # uncomment if you need. diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 171fd8aa..15456a62 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,6 +3,7 @@ description: ensures commit message to match regex entry: commit-check args: [--message] + stages: [commit-msg] pass_filenames: true language: python - id: check-branch diff --git a/commit_check/imperatives.py b/commit_check/imperatives.py index 1a1684f5..4942149f 100644 --- a/commit_check/imperatives.py +++ b/commit_check/imperatives.py @@ -22,6 +22,7 @@ "authorize", "break", "build", + "bump", "cache", "calculate", "call", diff --git a/docs/example.rst b/docs/example.rst index e7301f13..a064199e 100644 --- a/docs/example.rst +++ b/docs/example.rst @@ -31,6 +31,7 @@ Running as pre-commit hook rev: the tag or revision hooks: - id: check-message + stages: [commit-msg] - id: check-branch - id: check-author-name - id: check-author-email