-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (101 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (101 loc) · 2.89 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
[project]
name = "that-depends"
description = "Simple, typed dependency-injection framework for Python"
authors = [
{ name = "Artur Shiriev", email = "me@shiriev.ru" },
]
readme = "README.md"
requires-python = ">=3.10,<4"
license = "MIT"
keywords = ["dependency-injection", "di", "ioc-container", "scopes", "mocks", "python"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"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",
"Typing :: Typed",
"Topic :: Software Development :: Libraries",
]
version = "0"
[project.optional-dependencies]
fastapi = [
"fastapi",
]
faststream = [
"faststream"
]
[project.urls]
Homepage = "https://that-depends.modern-python.org"
Documentation = "https://that-depends.modern-python.org"
Repository = "https://github.com/modern-python/that-depends"
Issues = "https://github.com/modern-python/that-depends/issues"
Changelog = "https://github.com/modern-python/that-depends/releases"
[dependency-groups]
dev = [
"httpx",
"pytest",
"pytest-cov",
"pytest-asyncio",
"pytest-repeat",
"ruff",
"mypy",
"typing-extensions",
"pre-commit",
"litestar",
"faststream[nats]",
"mkdocs>=1.6.1",
"pytest-randomly",
"mkdocs-llmstxt>=0.4.0",
"pyrefly>=0.61.1",
]
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "that_depends"
module-root = ""
[tool.mypy]
python_version = "3.10"
strict = true
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
target-version = "py310"
extend-exclude = [
"docs",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"B008", # Do not perform function call `Provide` in argument defaults
"D100", # ignore missing module docstrings.
"D105", # ignore missing docstrings in magic methods.
"S101", # allow asserts
"TCH", # ignore flake8-type-checking
"FBT", # allow boolean args
"D203", # "one-blank-line-before-class" conflicting with D211
"D213", # "multi-line-summary-second-line" conflicting with D212
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"COM812", # flake8-commas "Trailing comma missing"
"ISC001", # flake8-implicit-str-concat
"PT028", # Test function has default argument
]
isort.lines-after-imports = 2
isort.no-lines-before = ["standard-library", "local-folder"]
per-file-ignores = { "tests/*"= ["D1", "SLF001"]}
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report term-missing"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore::UserWarning",
]
[tool.coverage.report]
exclude_also = ["if typing.TYPE_CHECKING:"]
[tool.pyrefly]
python-version = "3.10"
preset = "legacy"