-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (115 loc) · 2.86 KB
/
pyproject.toml
File metadata and controls
132 lines (115 loc) · 2.86 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"hatch",
"mypy",
"pyright",
"ruff",
]
docs = [
"mkdocs",
"mkdocs-material",
]
test = [
"fastapi",
"httpx",
"pydantic",
"pytest",
"pytest-asyncio",
"pytest-cov",
]
[project]
name = "python-injection"
version = "0.0.0"
description = "Dead-simple dependency injection framework for Python."
license = "MIT"
license-files = ["LICENSE"]
readme = "docs/index.md"
requires-python = ">=3.12, <3.15"
authors = [{ name = "remimd" }]
keywords = ["dependencies", "dependency", "inject", "injection"]
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Natural Language :: English",
"Typing :: Typed",
]
dependencies = [
"type-analyzer",
]
[project.optional-dependencies]
async = [
"anyio",
]
[project.urls]
Documentation = "https://python-injection.remimd.dev"
Repository = "https://github.com/100nm/python-injection"
[tool.coverage.report]
exclude_lines = [
"pass",
"pragma: no cover",
"raise NotImplementedError",
"return NotImplemented",
]
[tool.coverage.run]
omit = ["typing_checks/*"]
[tool.hatch.build]
skip-excluded-dirs = true
[tool.hatch.build.targets.sdist]
include = ["injection"]
[tool.hatch.build.targets.wheel]
packages = ["injection"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_defs = true
exclude = [
"tests/",
"conftest.py",
]
follow_imports = "silent"
no_implicit_reexport = true
plugins = ["pydantic.mypy"]
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pyright]
include = ["typing_checks/"]
[tool.pytest]
python_files = ["test_*.py"]
addopts = ["--tb", "short", "--cov", "./", "--cov-report", "term-missing:skip-covered"]
asyncio_default_fixture_loop_scope = "session"
asyncio_mode = "auto"
testpaths = ["**/tests/"]
[tool.ruff]
line-length = 88
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
extend-select = ["F", "I", "N"]
ignore = ["N818"]
fixable = ["ALL"]
[tool.uv]
default-groups = ["dev", "docs", "test"]
package = true