@@ -11,20 +11,18 @@ repos:
11
11
files : ' (app\.json|template\.env|modmail\/(config\.py|default_config(\.toml|\.yaml)))$'
12
12
require_serial : true
13
13
additional_dependencies :
14
- # so apparently these are needed, but the versions don't have to be pinned since it uses the local env
15
- # go figure.
16
14
- atoml
17
15
- attrs
18
16
- click
19
17
- coloredlogs
20
18
- desert
21
- - discord.py
19
+ - https://github.com/Rapptz/ discord.py/archive/45d498c1b76deaf3b394d17ccf56112fa691d160.zip
22
20
- marshmallow
23
21
- python-dotenv
24
22
- pyyaml
25
23
26
24
- repo : https://github.com/pre-commit/pre-commit-hooks
27
- rev : v4.2 .0
25
+ rev : v4.6 .0
28
26
hooks :
29
27
- id : check-case-conflict
30
28
- id : check-added-large-files
@@ -45,39 +43,45 @@ repos:
45
43
- id : trailing-whitespace
46
44
args : [--markdown-linebreak-ext=md]
47
45
48
- - repo : local
49
- hooks :
50
- - id : generate_requirements.txt
51
- name : Generate requirements.txt
52
- entry : python -m scripts.export_requirements --docs
53
- files : ' (pyproject.toml|poetry.lock|requirements.txt|scripts\/export\_requirements\.py|docs\/.requirements.txt)$'
54
- language : python
55
- pass_filenames : false
56
- require_serial : true
57
- additional_dependencies :
58
- - tomli~=1.2.1
59
-
60
46
- repo : https://github.com/pre-commit/pygrep-hooks
61
- rev : v1.9 .0
47
+ rev : v1.10 .0
62
48
hooks :
63
49
- id : python-check-blanket-noqa
64
50
- id : python-check-blanket-type-ignore
65
51
- id : python-use-type-annotations
66
52
53
+ - repo : https://github.com/python-poetry/poetry
54
+ rev : 1.8.0
55
+ hooks :
56
+ - id : poetry-check
57
+ name : Check poetry.lock is up to date
58
+
59
+ - repo : https://github.com/python-poetry/poetry-plugin-export
60
+ rev : 1.8.0
61
+ hooks :
62
+ - id : poetry-export
63
+ name : Generate requirements.txt
64
+ args : ['-qqq', --only, docs, -f, requirements.txt, --without-hashes, --output, requirements.txt]
65
+ files : ' (pyproject.toml|poetry.lock|requirements.txt)$'
66
+ - id : poetry-export
67
+ name : Generate docs requirements.txt
68
+ args : ['-qqq', --only, docs, -f, constraints.txt, --without-hashes, --output, docs/.requirements.txt]
69
+ files : ' (pyproject.toml|poetry.lock|docs\/.requirements.txt)$'
70
+
67
71
- repo : https://github.com/PyCQA/isort
68
- rev : 5.10.1
72
+ rev : 5.13.2
69
73
hooks :
70
74
- id : isort
71
75
72
76
- repo : https://github.com/asottile/blacken-docs
73
- rev : v1.12.1
77
+ rev : 1.18.0
74
78
hooks :
75
79
- id : blacken-docs
76
80
additional_dependencies :
77
81
- black
78
82
79
83
- repo : https://github.com/psf/black
80
- rev : 22.3 .0
84
+ rev : 24.8 .0
81
85
hooks :
82
86
- id : black
83
87
language_version : python3
0 commit comments