-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
149 lines (149 loc) · 4.06 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
default_language_version:
python: "3.11"
default_install_hook_types: [commit-msg, pre-commit]
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.6.9"
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/sourcery-ai/sourcery
rev: v1.23.0
hooks:
- id: sourcery
args: [--diff=git diff HEAD, --no-summary]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: >
(?x)^(
.*\.json |.*\.svg |docs/changelog.rst
)$
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.0
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude: "_templates|.git"
# - repo: https://github.com/thibaudcolas/curlylint
# rev: v0.13.1
# hooks:
# - id: curlylint
# args: ["--format", "stylish"]
- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.4.1
hooks:
- id: ensure-dunder-all
exclude: "test*|examples*|tools"
args: ["--use-tuple"]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: "v1.6.1"
# hooks:
# - id: mypy
# exclude: "tools|docs"
# additional_dependencies:
# [
# annotated_types,
# httpx,
# httpx_sse,
# hypothesis,
# jsbeautifier,
# pydantic>=2,
# pydantic-extra-types,
# pytest,
# pytest-lazy-fixture,
# pytest-mock,
# pytest_docker,
# python-dotenv,
# click,
# rich,
# rich-click,
# structlog,
# uvicorn,
# prometheus_client,
# litestar,
# polyfactory,
# discord-py,
# ]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.384
hooks:
- id: pyright
additional_dependencies:
[
advanced_alchemy,
annotated_types,
anyio>=3,
asyncpg,
asyncpg_stubs,
brotli,
click,
cryptography,
fast-query-parsers>=1.0.2,
fsspec,
greenlet,
httpx>=0.22,
httpx_sse,
hypothesis,
jinja2>=3.1.2,
jsbeautifier,
mako>=1.2.4,
msgspec>=0.18.2,
multidict>=6.0.2,
opentelemetry-instrumentation-asgi,
opentelemetry-sdk,
polyfactory>=2.6.3,
prometheus_client,
"pydantic>=2",
pydantic-extra-types,
pydantic-settings,
pytest,
pytest-asyncio,
pytest-cov,
pytest-lazy-fixture,
pytest-mock,
pytest-rerunfailures,
pytest-timeout,
python-dotenv,
pyyaml,
rich-click,
rich>=13.0.0,
structlog,
types-pytest-lazy-fixture,
types-pyyaml,
typing-extensions,
"uvicorn[standard]",
uvloop>=0.18.0,
asyncpg,
"litestar[cli,structlog,standard]",
types-click,
asyncpg-stubs,
polyfactory,
discord-py,
]
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: "v1.0.0"
hooks:
- id: sphinx-lint