-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (85 loc) · 2.4 KB
/
.pre-commit-config.yaml
File metadata and controls
86 lines (85 loc) · 2.4 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: "v9.22.0"
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: name-tests-test
args:
- --pytest
exclude: factories|test_utils|completion.py|test_data|data_fixtures|helpers
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
- repo: https://github.com/Goldziher/uncomment
rev: v1.0.4
hooks:
- id: uncomment
args: ["-i", "# codespell:ignore"]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
- mdformat-mkdocs==4.0.0
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
args: ["--pyi", "--line-length", "130"]
additional_dependencies:
- black==25.1.0
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.5.3"
hooks:
- id: prettier
exclude: ^tests|^.idea|^migrations|^.git|README.md|^docs
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.1"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
args: ["--fix", "--unsafe-fixes"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
exclude: ^tests|^scripts|^kreuzberg/_tesseract|^kreuzberg/_mime_types
additional_dependencies:
- tomli
- repo: https://github.com/jsh9/pydoclint
rev: 0.6.2
hooks:
- id: pydoclint
args:
[
--style=google,
--check-return-types=False,
--arg-type-hints-in-docstring=False,
]
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy
require_serial: true
language: system
types: [python]