1
- exclude : ' (\/migrations\/| ^djangoproject\/static\/.*$)'
1
+ exclude : ' (^djangoproject\/static\/.*$)'
2
2
default_language_version :
3
3
python : python3
4
4
repos :
5
5
- repo : https://github.com/pre-commit/pre-commit-hooks
6
- rev : " v4.6 .0"
6
+ rev : " v5.0 .0"
7
7
hooks :
8
+ - id : check-added-large-files
9
+ args : ["--maxkb=1024"]
10
+ - id : check-case-conflict
11
+ - id : check-docstring-first
12
+ - id : check-executables-have-shebangs
13
+ - id : check-json
14
+ - id : check-merge-conflict
15
+ - id : check-shebang-scripts-are-executable
16
+ - id : check-toml
17
+ - id : check-yaml
18
+ args : ["--allow-multiple-documents"]
8
19
- id : debug-statements
9
20
- id : detect-private-key
10
21
- id : end-of-file-fixer
11
22
exclude_types : [json, sql]
12
23
- id : file-contents-sorter
13
24
files : ^(requirements/\w*.txt)$
14
25
args : ["--ignore-case", "--unique"]
15
- - id : fix-encoding-pragma
16
- args : ["--remove"]
26
+ - id : fix-byte-order-marker
27
+ - id : mixed-line-ending
17
28
- id : trailing-whitespace
18
29
- repo : https://github.com/asottile/pyupgrade
19
- rev : " v3.17 .0"
30
+ rev : " v3.19 .0"
20
31
hooks :
21
32
- id : pyupgrade
22
33
# TODO: Update to --py312 when dropping support for
23
34
# Python 3.8
24
35
args : [--py38-plus]
25
36
- repo : https://github.com/adamchainz/django-upgrade
26
- rev : " 1.21.0 "
37
+ rev : " 1.22.1 "
27
38
hooks :
28
39
- id : django-upgrade
29
40
args : [--target-version, "4.2"]
30
41
- repo : https://github.com/psf/black
31
- rev : 24.8 .0
42
+ rev : 24.10 .0
32
43
hooks :
33
44
- id : black
34
- - repo : https://github.com/pre-commit/mirrors-prettier
35
- rev : " v4.0.0-alpha.8"
45
+ exclude : ' (\/migrations\/)'
46
+ - repo : https://github.com/rbubley/mirrors-prettier
47
+ rev : " v3.3.3"
36
48
hooks :
37
49
- id : prettier
38
50
exclude_types : [html, json, scss]
@@ -45,7 +57,15 @@ repos:
45
57
hooks :
46
58
- id : flake8
47
59
- repo : https://github.com/rtts/djhtml
48
- rev : " 3.0.6 "
60
+ rev : " 3.0.7 "
49
61
hooks :
50
62
- id : djhtml
51
63
files : .*/templates/.*\.html$
64
+ - repo : https://github.com/tox-dev/pyproject-fmt
65
+ rev : " 2.4.3"
66
+ hooks :
67
+ - id : pyproject-fmt
68
+ - repo : https://github.com/mrtazz/checkmake.git
69
+ rev : 0.2.2
70
+ hooks :
71
+ - id : checkmake
0 commit comments