From 40d4062a33d6bab4e1b984aef23f0ab4d9812346 Mon Sep 17 00:00:00 2001 From: Kale-ab Date: Mon, 7 Feb 2022 08:18:25 +0200 Subject: [PATCH 1/2] fix: Fixed conventional commit pre-commit hook not running. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ba6b5f53..60493aa83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ # pydocstyle: Checking docstring style. # interrogate: Checks docstring code coverage. -default_stages: ["commit"] +default_stages: ["commit","commit-msg"] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 From 1a8f4419ca2194520bb39d4f76840c36572c4b14 Mon Sep 17 00:00:00 2001 From: AsadJeewa Date: Mon, 7 Feb 2022 13:30:17 +0200 Subject: [PATCH 2/2] fix: conventional hook not running --- .pre-commit-config.yaml | 2 +- CONTRIBUTING.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60493aa83..09fef9b6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ # pydocstyle: Checking docstring style. # interrogate: Checks docstring code coverage. -default_stages: ["commit","commit-msg"] +default_stages: [commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5da9f83b5..06099b396 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,7 @@ Install the pre-commit hooks and testing dependencies: ```bash pip install .[testing_formatting] pre-commit install +pre-commit install -t commit-msg ``` You can run all the pre-commit hooks on all files as follows: ```bash