Skip to content

Commit 612d63f

Browse files
update lint config
1 parent df5dbb9 commit 612d63f

7 files changed

+1004
-1382
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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', --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+
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

docs/.requirements.txt

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1-
# because we have mkdocs extensions
2-
# and readthedocs doesn't support building from poetry
3-
# we have to declare our dependencies here
4-
5-
mkdocs==1.2.3
6-
mkdocs-material==7.2.6
7-
mkdocs-markdownextradata-plugin==0.1.9
1+
click==8.1.7 ; python_version >= "3.8" and python_version < "4.0"
2+
colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" and platform_system == "Windows"
3+
ghp-import==2.1.0 ; python_version >= "3.8" and python_version < "4.0"
4+
importlib-metadata==8.5.0 ; python_version >= "3.8" and python_version < "3.10"
5+
jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0"
6+
markdown==3.7 ; python_version >= "3.8" and python_version < "4.0"
7+
markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "4.0"
8+
mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "4.0"
9+
mkdocs-get-deps==0.2.0 ; python_version >= "3.8" and python_version < "4.0"
10+
mkdocs-markdownextradata-plugin==0.1.9 ; python_version >= "3.8" and python_version < "4.0"
11+
mkdocs-material-extensions==1.3.1 ; python_version >= "3.8" and python_version < "4.0"
12+
mkdocs-material==7.3.6 ; python_version >= "3.8" and python_version < "4.0"
13+
mkdocs==1.6.1 ; python_version >= "3.8" and python_version < "4.0"
14+
packaging==24.1 ; python_version >= "3.8" and python_version < "4.0"
15+
pathspec==0.12.1 ; python_version >= "3.8" and python_version < "4.0"
16+
platformdirs==4.3.6 ; python_version >= "3.8" and python_version < "4.0"
17+
pygments==2.18.0 ; python_version >= "3.8" and python_version < "4.0"
18+
pymdown-extensions==10.10.1 ; python_version >= "3.8" and python_version < "4.0"
19+
python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0"
20+
pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0"
21+
pyyaml==5.4.1 ; python_version >= "3.8" and python_version < "4.0"
22+
six==1.16.0 ; python_version >= "3.8" and python_version < "4.0"
23+
watchdog==4.0.2 ; python_version >= "3.8" and python_version < "4.0"
24+
zipp==3.20.2 ; python_version >= "3.8" and python_version < "3.10"

0 commit comments

Comments
 (0)