-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (77 loc) · 2.06 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (77 loc) · 2.06 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
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-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-added-large-files
args:
- "--maxkb=5000"
# - id: debug-statements # not for process_dcm
- id: check-yaml
exclude: mkdocs.yml
- id: check-json
# - id: check-toml # not for process_dcm
- id: check-symlinks
- id: name-tests-test
args:
- "--pytest-test-first"
- id: pretty-format-json
args:
- "--autofix"
- "-h"
- id: detect-private-key
- id: check-merge-conflict
- id: check-docstring-first
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
hooks:
- id: ruff
args: ["--fix"]
files: ^hooks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
hooks:
- id: ruff-format
files: ^hooks
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.8.3
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
additional_dependencies:
- prettier
# not for process_dcm
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.1
hooks:
- id: mypy
exclude: ^tests/
args:
[
--strict,
"--disable-error-code",
"type-arg",
"--disable-error-code",
"import-untyped",
"--disable-error-code",
"import-not-found",
"--disable-error-code",
"misc",
"--disable-error-code",
"unused-ignore",
"--disable-error-code",
"no-any-return",
]
- repo: https://github.com/thoughtworks/talisman
rev: "v1.37.0"
hooks:
- id: talisman-commit
entry: cmd --githook pre-commit