forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
173 lines (173 loc) · 4.4 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
default_language_version:
python: "3.11"
repos:
- 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/charliermarsh/ruff-pre-commit
rev: "v0.0.270"
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
exclude: "tests/openapi/typescript_converter/test_converter"
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
hooks:
- id: prettier
exclude: "_templates"
- 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.16.5
hooks:
- id: slotscheck
exclude: "test_*|docs"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.3.0"
hooks:
- id: mypy
exclude: "test_apps|tools|docs"
additional_dependencies:
[
aiosqlite,
async_timeout,
asyncmy,
asyncpg,
psycopg,
attrs,
beanie,
beautifulsoup4,
brotli,
cattrs,
click,
fakeredis>=2.10.2,
fast-query-parsers,
freezegun,
fsspec,
httpx,
hypothesis,
jsbeautifier,
mako,
mongomock_motor,
msgspec,
multidict,
opentelemetry-instrumentation-asgi,
opentelemetry-sdk,
oracledb,
piccolo,
picologging,
pydantic,
polyfactory,
pytest,
pytest-lazy-fixture,
pytest-mock,
pytest_docker,
python-dotenv,
python-jose,
pytimeparse,
pyyaml,
rich,
rich-click,
sqlalchemy>=2.0.12,
starlette,
structlog,
tortoise-orm,
asyncpg_stubs,
types-beautifulsoup4,
types-freezegun,
types-python-dateutil,
types-pyyaml,
types-redis,
uvicorn,
]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.311
hooks:
- id: pyright
exclude: "test_apps|tools|docs|_openapi"
additional_dependencies:
[
aiosqlite,
async_timeout,
asyncmy,
asyncpg,
psycopg,
attrs,
beanie,
beautifulsoup4,
brotli,
cattrs,
click,
fakeredis>=2.10.2,
fast-query-parsers,
freezegun,
fsspec,
httpx,
hypothesis,
jsbeautifier,
mako,
mongomock_motor,
msgspec,
multidict,
opentelemetry-instrumentation-asgi,
opentelemetry-sdk,
oracledb,
piccolo,
picologging,
pydantic,
polyfactory,
pytest,
pytest-lazy-fixture,
pytest-mock,
pytest_docker,
python-dotenv,
python-jose,
pytimeparse,
pyyaml,
rich,
rich-click,
sqlalchemy>=2.0.12,
starlette,
structlog,
tortoise-orm,
asyncpg_stubs,
types-beautifulsoup4,
types-freezegun,
types-python-dateutil,
types-pyyaml,
types-redis,
uvicorn,
]
- repo: local
hooks:
- id: sphinx-lint
name: sphinx-lint
language: python
entry: sphinx-lint
additional_dependencies: [sphinx-lint]
types: [rst]