@@ -11,20 +11,18 @@ repos:
1111 files : ' (app\.json|template\.env|modmail\/(config\.py|default_config(\.toml|\.yaml)))$'
1212 require_serial : true
1313 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.
1614 - atoml
1715 - attrs
1816 - click
1917 - coloredlogs
2018 - desert
21- - discord.py
19+ - https://github.com/Rapptz/ discord.py/archive/45d498c1b76deaf3b394d17ccf56112fa691d160.zip
2220 - marshmallow
2321 - python-dotenv
2422 - pyyaml
2523
2624 - repo : https://github.com/pre-commit/pre-commit-hooks
27- rev : v4.2 .0
25+ rev : v4.6 .0
2826 hooks :
2927 - id : check-case-conflict
3028 - id : check-added-large-files
@@ -45,39 +43,45 @@ repos:
4543 - id : trailing-whitespace
4644 args : [--markdown-linebreak-ext=md]
4745
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-
6046 - repo : https://github.com/pre-commit/pygrep-hooks
61- rev : v1.9 .0
47+ rev : v1.10 .0
6248 hooks :
6349 - id : python-check-blanket-noqa
6450 - id : python-check-blanket-type-ignore
6551 - id : python-use-type-annotations
6652
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', -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+
6771 - repo : https://github.com/PyCQA/isort
68- rev : 5.10.1
72+ rev : 5.13.2
6973 hooks :
7074 - id : isort
7175
7276 - repo : https://github.com/asottile/blacken-docs
73- rev : v1.12.1
77+ rev : 1.18.0
7478 hooks :
7579 - id : blacken-docs
7680 additional_dependencies :
7781 - black
7882
7983 - repo : https://github.com/psf/black
80- rev : 22.3 .0
84+ rev : 24.8 .0
8185 hooks :
8286 - id : black
8387 language_version : python3
0 commit comments