-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
57 lines (56 loc) · 1.46 KB
/
.pre-commit-config.yaml
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
49
50
51
52
53
54
55
56
57
ci:
autofix_commit_msg: |
style(pre-commit.ci): auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
autoupdate_branch: ''
autoupdate_commit_msg: 'ci(deps): pre-commit autoupdate'
autoupdate_schedule: weekly
skip:
- "ruff"
- "poetry-lock"
default_language_version:
python: python3.12
default_stages:
- "pre-commit"
default_install_hook_types:
- "pre-commit"
- "commit-msg"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: '^(.+\.md|LICENSE)$'
- id: mixed-line-ending
args:
- "--fix=lf"
- id: check-toml
- id: check-yaml
- id: check-ast
- repo: https://github.com/python-poetry/poetry
rev: "2.0.1"
hooks:
- id: poetry-check
- id: poetry-lock
files: "^(pyproject.toml|poetry.lock)$"
always_run: false
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.1
hooks:
- id: commitizen
stages:
- "commit-msg"
- repo: https://github.com/executablebooks/mdformat
rev: "0.7.22"
hooks:
- id: mdformat
additional_dependencies:
- "mdformat-gfm"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.4"
hooks:
- id: ruff-format
- id: ruff