forked from adriangb/di
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (74 loc) · 2.04 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
[tool.poetry]
name = "di"
version = "0.56.1"
description = "Autowiring dependency injection"
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",
]
[tool.poetry.dependencies]
python = ">=3.7,<4"
anyio = "~3"
importlib-metadata = {version = ">=3", python = "<3.8"}
typing-extensions = {version = ">=3", python = "<3.9"}
graphlib2 = ">=0.2.13"
[tool.poetry.dev-dependencies]
# linting
black = "~22"
flake8 = "~3.9"
isort = "~5.10"
mypy = "v0.930"
pre-commit = "~2"
# testing
pytest = "~6"
pytest-cov = { version = "~2"}
pytest-sugar = "~0"
trio = "~0"
coverage = {extras = ["toml"], version = "^6.0"}
# docs
mkdocs = "~1"
mkdocs-material = "~8,!=8.1.3"
mike = "~1"
# benchmarking
pyinstrument = "~4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.coverage.run]
branch = true
source = ["di", "tests", "docs"]
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
[[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