-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (43 loc) · 1.24 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (43 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: '^{{cookiecutter.project_slug}}/'
- id: ruff-format
exclude: '^{{cookiecutter.project_slug}}/'
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-frontmatter
exclude: '^{{cookiecutter.project_slug}}/'
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2
hooks:
- id: markdownlint-cli2
exclude: '^{{cookiecutter.project_slug}}/'
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.7
hooks:
- id: commitizen
stages: [commit-msg]
- repo: local
hooks:
- id: cz-changelog
name: update-changelog
entry: uv run cz changelog --incremental
language: system
pass_filenames: false
always_run: true
verbose: true