-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
134 lines (125 loc) · 3.77 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
[tool.poetry]
name = "wireup"
version = "0.15.1"
description = "Python Dependency Injection Library"
authors = ["Aldo Mateli <aldo.mateli@gmail.com>"]
license = "MIT"
readme = "readme.md"
homepage = "https://github.com/maldoinc/wireup"
packages = [{ include = "wireup" }]
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 :: Only",
"Typing :: Typed",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.urls]
Repository = "https://github.com/maldoinc/wireup"
Documentation = "https://maldoinc.github.io/wireup/"
Changelog = "https://github.com/maldoinc/wireup/releases"
[tool.poetry.dependencies]
python = "^3.8"
graphlib2 = { version = "^0.4.7", python = ">=3.8,<3.9" }
[tool.poetry.group.dev.dependencies]
ruff = "0.8.6"
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"
[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 arbitraty 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.
"D100", # Disable undocumented public module. The definitions themselves will be documented
"D101",
"D102",
"D104", # Same as above, disable missing docstring in public package,
"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
"FA100", # Don't recommend __future__ annotations.
# Disable as they may cause conflicts with ruff formatter
"COM812",
"ISC001",
]
[tool.ruff.lint.per-file-ignores]
"test/*" = [
"D",
"ANN",
"PT",
"SLF001",
"T201",
"EM101",
"TRY",
"FA100",
"B008",
"RUF009",
"F401",
"SIM117",
"S101",
"PLR2004",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# 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 = "session"