Skip to content

Commit c3b241f

Browse files
refactor: use pre-commit command for conventional commits (#238)
1 parent fce0005 commit c3b241f

File tree

3 files changed

+11
-37
lines changed

3 files changed

+11
-37
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
15
repos:
26
- repo: https://github.com/astral-sh/ruff-pre-commit
37
rev: v0.9.8
48
hooks:
59
- id: ruff
610
args: [--fix]
711
- id: ruff-format
12+
13+
- repo: https://github.com/compilerla/conventional-pre-commit
14+
rev: v4.0.0
15+
hooks:
16+
- id: conventional-pre-commit
17+
stages: [commit-msg]
18+
args: []

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ install-dev:
99
uv pip install -r requirements-dev.txt $(UV_FLAGS)
1010

1111
setup-git-hooks:
12-
@cp scripts/commit-msg.sample .git/hooks/commit-msg
1312
@pre-commit install
14-
@echo "git hooks installed"
1513

1614
lint:
1715
ruff check soil_id

scripts/commit-msg.sample

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)