1
1
# https://pre-commit.com/
2
2
ci :
3
- autoupdate_schedule : monthly
4
- autoupdate_commit_msg : ' Update pre-commit hooks'
3
+ autoupdate_schedule : monthly
4
+ autoupdate_commit_msg : " Update pre-commit hooks"
5
5
repos :
6
6
- repo : https://github.com/pre-commit/pre-commit-hooks
7
7
rev : v5.0.0
@@ -11,9 +11,21 @@ repos:
11
11
- id : check-yaml
12
12
- id : debug-statements
13
13
- id : mixed-line-ending
14
+ - repo : https://github.com/pre-commit/pygrep-hooks
15
+ rev : v1.10.0
16
+ hooks :
17
+ # - id: python-check-blanket-noqa # checked by ruff
18
+ # - id: python-check-blanket-type-ignore # checked by ruff
19
+ # - id: python-check-mock-methods # checked by ruff
20
+ - id : python-no-log-warn
21
+ # - id: python-use-type-annotations # too many false positives
22
+ - id : rst-backticks
23
+ - id : rst-directive-colons
24
+ - id : rst-inline-touching-normal
25
+ - id : text-unicode-replacement-char
14
26
- repo : https://github.com/astral-sh/ruff-pre-commit
15
27
# Ruff version.
16
- rev : ' v0.7.2'
28
+ rev : v0.7.2
17
29
hooks :
18
30
- id : ruff-format
19
31
- id : ruff
@@ -24,6 +36,11 @@ repos:
24
36
- id : blackdoc
25
37
exclude : " generate_aggregations.py"
26
38
additional_dependencies : ["black==24.8.0"]
39
+ - repo : https://github.com/rbubley/mirrors-prettier
40
+ rev : v3.3.3
41
+ hooks :
42
+ - id : prettier
43
+ args : [--cache-location=.prettier_cache/cache]
27
44
- repo : https://github.com/pre-commit/mirrors-mypy
28
45
rev : v1.13.0
29
46
hooks :
45
62
- repo : https://github.com/citation-file-format/cff-converter-python
46
63
rev : ebf0b5e44d67f8beaa1cd13a0d0393ea04c6058d
47
64
hooks :
48
- - id : validate-cff
65
+ - id : validate-cff
0 commit comments