forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
194 lines (194 loc) · 5.13 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
default_language_version:
python: "3.11"
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.3.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-toml
- id: debug-statements
exclude: "litestar/middleware/exceptions/middleware.py"
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: "1.5.0"
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--no-update"]
- repo: https://github.com/provinzkraut/unasyncd
rev: "v0.6.0"
hooks:
- id: unasyncd
additional_dependencies: ["ruff"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.282"
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
exclude: "tests/openapi/typescript_converter/test_converter"
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/asottile/blacken-docs
rev: 1.15.0
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.1"
hooks:
- id: prettier
exclude: "_templates|.git"
- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.3.0
hooks:
- id: ensure-dunder-all
exclude: "test*|examples*|tools"
args: ["--use-tuple"]
- repo: https://github.com/ariebovenberg/slotscheck
rev: v0.17.0
hooks:
- id: slotscheck
exclude: "test_*|docs"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.4.1"
hooks:
- id: mypy
exclude: "test_apps|tools|docs|tests/examples|tests/docker_service_fixtures|tests/unit/test_partial"
additional_dependencies:
[
polyfactory,
aiosqlite,
annotated_types,
async_timeout,
asyncmy,
asyncpg,
asyncpg_stubs,
attrs,
beanie,
beautifulsoup4,
brotli,
click,
fast-query-parsers>=1.0.2,
fsspec,
httpx,
httpx_sse,
hypothesis,
jsbeautifier,
mako,
mongomock_motor,
msgspec,
multidict,
opentelemetry-instrumentation-asgi,
opentelemetry-sdk,
oracledb,
piccolo,
picologging,
psycopg,
pydantic>=2,
pydantic-extra-types,
pytest,
pytest-lazy-fixture,
pytest-mock,
pytest_docker,
python-dotenv,
python-jose,
pytest-timeout,
pyyaml,
redis,
rich,
rich-click,
sqlalchemy>=2.0.12,
starlette,
types-beautifulsoup4,
structlog,
types-pyyaml,
types-redis,
types-python-jose,
uvicorn,
prometheus_client,
time-machine,
]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.320
hooks:
- id: pyright
exclude: "test_apps|tools|docs|_openapi|tests/examples|tests/docker_service_fixtures|tests/unit/test_partial"
additional_dependencies:
[
polyfactory,
aiosqlite,
annotated_types,
async_timeout,
asyncmy,
asyncpg,
asyncpg_stubs,
attrs,
beanie,
beautifulsoup4,
brotli,
click,
fast-query-parsers>=1.0.2,
fsspec,
httpx,
httpx_sse,
hypothesis,
jsbeautifier,
mako,
mongomock_motor,
msgspec,
multidict,
opentelemetry-instrumentation-asgi,
opentelemetry-sdk,
oracledb,
piccolo,
picologging,
psycopg,
pydantic>=2,
pydantic-extra-types,
pytest,
pytest-lazy-fixture,
pytest-mock,
pytest_docker,
python-dotenv,
python-jose,
pytest-timeout,
pyyaml,
redis,
rich,
rich-click,
sqlalchemy>=2.0.12,
starlette,
structlog,
types-beautifulsoup4,
types-pyyaml,
types-redis,
types-python-jose,
uvicorn,
prometheus_client,
time-machine,
]
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: "v0.6.7"
hooks:
- id: sphinx-lint
- repo: local
hooks:
- id: pypi-readme
name: pypi-readme
language: python
entry: python tools/pypi_readme.py
types: [markdown]