Skip to content

Commit bcb34fe

Browse files
authored
Merge pull request #57 from stefanofusai/56-optimize-pre-commit-hooks
2 parents 20b3b6d + 5d9dd61 commit bcb34fe

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.pre-commit-config.yaml

+19-18
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ ci:
33
- uv-lock
44
default_language_version:
55
python: python3.12
6+
fail_fast: true
67
repos:
7-
# Generic file checks and fixes
8+
# Specific checks and fixes for Git
9+
- repo: https://github.com/jorisroovers/gitlint
10+
rev: v0.19.1
11+
hooks:
12+
- id: gitlint
13+
args:
14+
- -c
15+
- title-match-regex.regex=^\[#\d+\]\s(Build|Bump|Chore|Ci|Docs|Feat|Fix|Perf|Refactor|Revert|Style|Test):\s[a-z].*$
16+
- --ignore=B6
17+
- --msg-filename
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v5.0.0
20+
hooks:
21+
- id: no-commit-to-branch
22+
args:
23+
- --branch
24+
- main
25+
# Generic checks and fixes
826
- repo: https://github.com/pre-commit/pre-commit-hooks
927
rev: v5.0.0
1028
hooks:
@@ -47,23 +65,6 @@ repos:
4765
args:
4866
- --fix
4967
- id: ruff-format
50-
# Specific checks and fixes for Git
51-
- repo: https://github.com/jorisroovers/gitlint
52-
rev: v0.19.1
53-
hooks:
54-
- id: gitlint
55-
args:
56-
- -c
57-
- title-match-regex.regex=^\[#\d+\]\s(Build|Bump|Chore|Ci|Docs|Feat|Fix|Perf|Refactor|Revert|Style|Test):\s[a-z].*$
58-
- --ignore=B6
59-
- --msg-filename
60-
- repo: https://github.com/pre-commit/pre-commit-hooks
61-
rev: v5.0.0
62-
hooks:
63-
- id: no-commit-to-branch
64-
args:
65-
- --branch
66-
- main
6768
# Dependency management
6869
- repo: https://github.com/astral-sh/uv-pre-commit
6970
rev: 0.5.6

0 commit comments

Comments
 (0)