Skip to content

Commit 03f3d28

Browse files
committed
chore: add conventional commit hook
1 parent eea2415 commit 03f3d28

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
repos:
2+
repos:
3+
- repo: https://github.com/compilerla/conventional-pre-commit
4+
rev: v3.6.0
5+
hooks:
6+
- id: conventional-pre-commit
7+
stages: [commit-msg]
8+
args: [--verbose]
29
- repo: https://github.com/psf/black-pre-commit-mirror
310
rev: 24.8.0
411
hooks:
@@ -8,5 +15,6 @@ repos:
815
hooks:
916
- id: isort
1017
args: ["--profile", "black", "--filter-files"]
18+
default_install_hook_types: [pre-commit, commit-msg]
1119
# default_language_version:
1220
# python: python3.12

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ If needed, the container can be rebuilt by searching for "Dev Containers: Rebuil
103103
### Setup Git pre-commit hooks
104104

105105
Pre-commit hooks are configured using the [pre-commit](https://pre-commit.com/) tool.
106-
Currently, the hooks consists in formatting with [Black](https://black.readthedocs.io/en/stable/index.html).
107106
When this repository is first initialised, the hooks need to be installed with `pre-commit install`.
108107

109108
## Using the template

0 commit comments

Comments
 (0)