-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
112 lines (100 loc) · 2.6 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
[tool.poetry]
name = "di"
version = "0.79.2"
description = "Dependency injection toolkit"
authors = ["Adrian Garcia Badaracco <[email protected]>"]
readme = "README.md"
repository = "https://github.com/adriangb/di"
documentation = "https://www.adriangb.com/di"
keywords = [
"dependency-injection",
"inversion-of-control",
"SOLID",
"IoC",
"DI",
]
license = "MIT"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Framework :: AsyncIO",
"Framework :: Trio",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"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",
]
[tool.poetry.dependencies]
python = ">=3.8,<4"
anyio = { version = ">=3.5.0", optional = true }
typing-extensions = { version = ">=3", python = "<3.9" }
graphlib2 = "^0.4.1"
[tool.poetry.extras]
anyio = ["anyio"]
[tool.poetry.group.dev.dependencies]
# linting
black = "~23"
mypy = "~1"
ruff = "^0.0.286"
pre-commit = "~2"
# testing
pytest = "~7"
pytest-cov = { version = "~3" }
pytest-sugar = "~0"
trio = "~0"
coverage = { extras = ["toml"], version = "~6" }
# docs
mkdocs = "~1"
mkdocs-material = "~9"
mkdocstrings = {version = ">=0.23.0", extras = ["python"]}
mike = "~1"
# benchmarking
pyinstrument = "~4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
source = ["di", "tests", "docs_src"]
dynamic_context = "test_function"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'\.\.\.',
"raise NotImplementedError",
"TYPE_CHECKING",
"__repr__",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.mypy]
files = "di/**/*.py,tests/**/*.py,docs_src/**/*.py"
show_error_codes = true
pretty = true
warn_unreachable = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "di.*"
strict_equality = true
warn_return_any = true
no_implicit_optional = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_subclassing_any = true
warn_unused_ignores = false
[tool.ruff]
extend-select = ['Q', 'RUF', 'C', 'UP', 'I', 'T']
extend-ignore = [
# E501 is handled by black
'E501',
]
isort = { known-first-party = ['di', 'tests'] }
[tool.ruff.per-file-ignores]
"docs_src/*" = ['T201'] # `print` found