Skip to content

Commit 5d9dd61

Browse files
committed
[#56] Perf: improve pre-commit config
1 parent 8ddb07e commit 5d9dd61

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.pre-commit-config.yaml

+8-18
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,53 @@ ci:
33
- uv-lock
44
default_language_version:
55
python: python3.12
6+
fail_fast: true
67
repos:
78
# Specific checks and fixes for Git
8-
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v5.0.0
10-
hooks:
11-
- id: no-commit-to-branch
12-
fail_fast: true
13-
args:
14-
- --branch
15-
- main
169
- repo: https://github.com/jorisroovers/gitlint
1710
rev: v0.19.1
1811
hooks:
1912
- id: gitlint
20-
fail_fast: true
2113
args:
2214
- -c
2315
- title-match-regex.regex=^\[#\d+\]\s(Build|Bump|Chore|Ci|Docs|Feat|Fix|Perf|Refactor|Revert|Style|Test):\s[a-z].*$
2416
- --ignore=B6
2517
- --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
2625
# Generic checks and fixes
2726
- repo: https://github.com/pre-commit/pre-commit-hooks
2827
rev: v5.0.0
2928
hooks:
3029
- id: end-of-file-fixer
31-
fail_fast: true
3230
# Specific checks and fixes for different file types
3331
- repo: https://github.com/markdownlint/markdownlint
3432
rev: v0.12.0
3533
hooks:
3634
- id: markdownlint
37-
fail_fast: true
3835
args:
3936
- -r
4037
- ~MD013
4138
- repo: https://github.com/pre-commit/pre-commit-hooks
4239
rev: v5.0.0
4340
hooks:
4441
- id: check-toml
45-
fail_fast: true
4642
- repo: https://github.com/adrienverge/yamllint
4743
rev: v1.35.1
4844
hooks:
4945
- id: yamllint
50-
fail_fast: true
5146
args:
5247
- -d
5348
- "{extends: default, rules: {comments: {min-spaces-from-content: 1}, document-start: {present: false}, line-length: disable}}"
5449
- repo: https://github.com/google/yamlfmt
5550
rev: v0.13.0
5651
hooks:
5752
- id: yamlfmt
58-
fail_fast: true
5953
args:
6054
- -formatter
6155
- eof_newline=true
@@ -64,19 +58,15 @@ repos:
6458
rev: v3.18.0
6559
hooks:
6660
- id: pyupgrade
67-
fail_fast: true
6861
- repo: https://github.com/astral-sh/ruff-pre-commit
6962
rev: v0.8.2
7063
hooks:
7164
- id: ruff
72-
fail_fast: true
7365
args:
7466
- --fix
7567
- id: ruff-format
76-
fail_fast: true
7768
# Dependency management
7869
- repo: https://github.com/astral-sh/uv-pre-commit
7970
rev: 0.5.6
8071
hooks:
8172
- id: uv-lock
82-
fail_fast: true

0 commit comments

Comments
 (0)