-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
188 lines (172 loc) · 3.86 KB
/
pyproject.toml
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
[project]
name = "quart-sqlalchemy"
version = "3.0.4"
description = "SQLAlchemy for humans, with framework adapter for Quart."
authors = [
{name = "Joe Black", email = "[email protected]"},
]
dependencies = [
"quart<0.20.0,>=0.18.3",
"werkzeug<3.1.0,>=2.2.0",
"blinker<1.7,>=1.5",
"SQLAlchemy[asyncio]<2.1.0,>=2.0.0",
"SQLAlchemy-Utils",
"anyio>=3.0.0,<4",
"pydantic~=1.10.13",
"tenacity~=8.0.1",
"sqlapagination",
"exceptiongroup",
]
requires-python = ">=3.8"
readme = "README.rst"
license = {text = "MIT"}
[project.urls]
"Homepage" = "https://github.com/joeblackwaslike/quart-sqlalchemy"
"Bug Tracker" = "https://github.com/joeblackwaslike/quart-sqlalchemy/issues"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.4.3",
# "pytest-asyncio~=0.20.3",
"pytest-asyncio @ https://github.com/joeblackwaslike/pytest-asyncio/releases/download/v0.20.4.dev42/pytest_asyncio-0.20.4.dev42-py3-none-any.whl",
"pytest-mock>=3.12.0",
"pytest-cov>=4.1.0",
"coverage[toml]>=7.3.2",
"aiosqlite>=0.19.0",
"pre-commit>=3.5.0",
"tox>=4.11.3",
"tox-pdm>=0.7.0",
"mypy>=1.7.0",
"ruff>=0.1.5",
]
[tool.pdm.build]
source-includes = [
"docs/",
"tests/",
"CHANGES.rst",
"pdm.lock",
"tox.ini",
]
excludes = [
"docs/_build",
]
[tool.pytest.ini_options]
addopts = "-rsx --tb=short --loop-scope session"
testpaths = ["tests"]
filterwarnings = ["error"]
asyncio_mode = "auto"
py311_task = true
log_cli = true
[tool.coverage.run]
branch = true
source = ["src", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.isort]
profile = "black"
src_paths = ["src", "tests", "examples"]
force_single_line = true
use_parentheses = true
atomic = true
lines_after_imports = 2
line_length = 100
order_by_type = false
known_first_party = ["quart_sqlalchemy", "tests"]
[tool.mypy]
python_version = "3.7"
plugins = ["pydantic.mypy", "sqlalchemy.ext.mypy.plugin"]
files = ["src/quart_sqlalchemy", "tests"]
show_error_codes = true
pretty = true
strict = true
# db.Model attribute doesn't recognize subclassing
disable_error_code = ["name-defined"]
# db.Model is Any
disallow_subclassing_any = false
allow_untyped_globals = true
allow_untyped_defs = true
allow_untyped_calls = true
[[tool.mypy.overrides]]
module = [
"cryptography.*",
"importlib_metadata.*",
]
ignore_missing_imports = true
[tool.pylint.messages_control]
max-line-length = 100
disable = ["missing-docstring", "protected-access"]
[tool.flakeheaven]
baseline = ".flakeheaven_baseline"
exclude = ["W503"]
[tool.flakeheaven.plugins]
"flake8-*" = ["+*"]
"flake8-docstrings" = [
"+*",
"-D100",
"-D101",
"-D102",
"-D103",
"-D106",
"-D107",
"-D401",
]
"flake8-quotes" = [
"+*",
"-Q000",
]
"flake8-isort" = [
"+*",
"-I001",
"-I003",
"-I005",
]
"flake8-bandit" = [
"+*",
"-S101",
]
"mccabe" = ["+*"]
"pycodestyle" = ["+*"]
"pyflakes" = [
"+*",
]
"wemake-python-styleguide" = [
"+*",
"-WPS110",
"-WPS111",
"-WPS115",
"-WPS118",
"-WPS120", # allow variables with trailing underscore
"-WPS201",
"-WPS204",
"-WPS210",
"-WPS211",
"-WPS214",
"-WPS221",
"-WPS224",
"-WPS225", # allow multiple except in try block
"-WPS226",
"-WPS230",
"-WPS231",
"-WPS232",
"-WPS238", # allow multiple raises in function
"-WPS305", # allow f-strings
"-WPS306",
"-WPS326",
"-WPS337", # allow multi-line conditionals
"-WPS338",
"-WPS420", # allow pass keyword
"-WPS429",
"-WPS430", # allow nested functions
"-WPS431",
"-WPS432",
"-WPS433",
"-WPS435",
"-WPS437",
"-WPS463", # Unsure what it means "Found a getter without a return value"
"-WPS473",
"-WPS503",
"-WPS505",
"-WPS604", # allow pass inside 'class' body
]