9
9
# Fix the node version to avoid a GLIBC error
10
10
# ref: https://stackoverflow.com/questions/71939099/bitbucket-pipeline-error-installing-pre-commit-ts-lint/71940852#71940852
11
11
default_language_version :
12
- node : 16.14.2
12
+ node : 22.9.0
13
13
14
14
repos :
15
- - repo : https://github.com/pre-commit /mirrors-prettier
16
- rev : v4.0.0-alpha.8
15
+ - repo : " https://github.com/pycontribs /mirrors-prettier"
16
+ rev : v3.3.3
17
17
hooks :
18
18
- id : prettier
19
19
# Exclude the HTML, since it doesn't understand Jinja2
20
20
# exclude also the webpack.config.js file has it embed complete url dificult to prettify
21
21
# exclude the pytest-regressions folder tests/test_ally
22
22
exclude : .+\.html|webpack\.config\.js|tests/test_a11y/
23
23
24
- - repo : https://github.com/psf/black
25
- rev : 24.10.0
26
- hooks :
27
- - id : black
28
-
29
- - repo : https://github.com/astral-sh/ruff-pre-commit
24
+ - repo : " https://github.com/astral-sh/ruff-pre-commit"
30
25
rev : " v0.7.2"
31
26
hooks :
32
27
- id : ruff
28
+ args : [--exit-non-zero-on-fix]
29
+ - id : ruff-format
33
30
34
- - repo : https://github.com/asottile/pyupgrade
31
+ - repo : " https://github.com/asottile/pyupgrade"
35
32
rev : v3.19.0
36
33
hooks :
37
34
- id : pyupgrade
38
35
args : [--py37-plus]
39
36
40
- - repo : https://github.com/Riverside-Healthcare/djLint
37
+ - repo : " https://github.com/Riverside-Healthcare/djLint"
41
38
rev : v1.35.4
42
39
hooks :
43
40
- id : djlint-jinja
44
41
types_or : ["html"]
45
42
46
- - repo : https://github.com/PyCQA/doc8
43
+ - repo : " https://github.com/PyCQA/doc8"
47
44
rev : v1.1.2
48
45
hooks :
49
46
- id : doc8
@@ -53,12 +50,12 @@ repos:
53
50
hooks :
54
51
- id : nbstripout
55
52
56
- - repo : https://github.com/mondeja/pre-commit-po-hooks
53
+ - repo : " https://github.com/mondeja/pre-commit-po-hooks"
57
54
rev : v1.7.3
58
55
hooks :
59
56
- id : remove-metadata
60
57
61
- - repo : https://github.com/thibaudcolas/pre-commit-stylelint
58
+ - repo : " https://github.com/thibaudcolas/pre-commit-stylelint"
62
59
rev : v16.10.0
63
60
hooks :
64
61
- id : stylelint
68
65
# stylelint itself needs to be here when using additional_dependencies.
69
66
70
67
68
+
69
+ - repo : " https://github.com/pre-commit/pre-commit-hooks"
70
+ rev : v5.0.0
71
+ hooks :
72
+ - id : trailing-whitespace
73
+ - id : end-of-file-fixer
0 commit comments