-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (174 loc) · 4.53 KB
/
pyproject.toml
File metadata and controls
184 lines (174 loc) · 4.53 KB
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
[project]
name = "wireup"
version = "2.8.0"
description = "Python Dependency Injection Library"
authors = [{ name = "Aldo Mateli", email = "aldo.mateli@gmail.com" }]
license = { text = "MIT" }
readme = "readme.md"
requires-python = ">=3.8"
keywords = [
"flask",
"django",
"injector",
"dependency injection",
"dependency injection container",
"dependency injector",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Framework :: Django",
"Framework :: Flask",
"Framework :: FastAPI",
"Framework :: aiohttp",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["typing_extensions>=4.7"]
[project.optional-dependencies]
eval-type = ["eval-type-backport>=0.2.0; python_version < '3.11'"]
[project.urls]
Homepage = "https://github.com/maldoinc/wireup"
Repository = "https://github.com/maldoinc/wireup"
Documentation = "https://maldoinc.github.io/wireup/"
Changelog = "https://github.com/maldoinc/wireup/releases"
[dependency-groups]
dev = [
"setuptools>=68.0.0",
"mkdocs>=1.5.2",
"mkdocs-material>=9.4.14",
"mkdocstrings-python>=1.6.2",
"mkdocs-open-in-new-tab>=1.0.2",
"mike>=2.1.3",
"typing-extensions>=4.7.1",
"mypy==1.14.1",
"coverage>=7.3.2",
"tox>=4.14.2",
"pytest>=8.3.3",
"pytest-asyncio>=0.24.0",
"eval-type-backport>=0.2.0",
"pydantic-settings>=2.12.0,<3; python_version >= '3.10' and python_version < '3.14'",
"mdformat>=0.7.17",
"mdformat-mkdocs>=1.0.0",
"blacken-docs>=1.16.0",
"ruff>=0.4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["wireup"]
[tool.ruff]
target-version = "py38"
line-length = 120
src = ["wireup"]
lint.fixable = ["ALL"]
lint.select = ["ALL"]
lint.ignore = [
"ANN401", # Allow returning any. Parameter bag has to store/retrieve arbitrary types.
"PT009", # Prefer using assertEqual instead of plain asserts
"TD003", # Exclude "missing issue link for todos",
"FIX002", # Disable "Line contains to do, consider resolving the issue". It will be done, in due time.
"D",
"D203", # Ignore "one blank line before class". Using "no blank lines before class rule".
"D213", # Disable "Summary must go into next line"
"D107", # Disable required docs for __init. Can be redundant if class also has them.
"A003", # Disable "shadows builtin". OverrideManager.set was flagged by this
"SLF001", # Allow usage of _fields.
"FA100", # Don't recommend __future__ annotations.
# Disable as they may cause conflicts with ruff formatter
"COM812",
"ISC001",
"TRY300",
]
[tool.ruff.lint.per-file-ignores]
"test/*" = [
"D",
"ANN",
"PT",
"SLF001",
"T201",
"EM101",
"TRY",
"FA100",
"B008",
"RUF009",
"F401",
"SIM117",
"S101",
"PLR2004",
"PLR0913",
]
"benchmarks/*" = [
"BLE001",
"C901",
"E501",
"ERA001",
"FBT001",
"FBT002",
"I001",
"INP001",
"PERF203",
"PTH",
"PLC0415",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLW1509",
"RUF001",
"RUF034",
"RUF046",
"S311",
"S603",
"S607",
"SIM108",
"SIM117",
"T201",
"UP015",
]
"benchmarks/wireup_benchmarks/*" = [
"ANN",
"ARG001",
"B010",
"B008",
"E742",
"ERA001",
"FA102",
"PLR0913",
"PLR2004",
"S101",
]
# Taken from https://coverage.readthedocs.io/en/latest/excluding.html
[tool.coverage.report]
omit = ["test/*"]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.mypy]
exclude = "wireup.integration"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"