Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (81 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (81 loc) · 2.47 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
[project]
name = "modern-di-aiogram"
description = "modern-di integration for aiogram"
authors = [{ name = "Artur Shiriev", email = "me@shiriev.ru" }]
requires-python = ">=3.11,<4"
license = "MIT"
readme = "README.md"
keywords = ["dependency-injection", "di", "ioc-container", "modern-di", "aiogram", "telegram", "python"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Typing :: Typed",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"aiogram>=3.2,<4",
"modern-di>=4.2,<5",
]
version = "0"
[project.urls]
Homepage = "https://modern-di.modern-python.org"
Documentation = "https://modern-di.modern-python.org/integrations/aiogram/"
Repository = "https://github.com/modern-python/modern-di-aiogram"
Issues = "https://github.com/modern-python/modern-di-aiogram/issues"
Changelog = "https://github.com/modern-python/modern-di-aiogram/releases"
[dependency-groups]
dev = [
"pytest>=8",
"pytest-cov>=5",
"pytest-asyncio>=0.24",
"aiogram-dialog>=2,<3",
]
lint = [
"ty",
"ruff",
"eof-fixer",
]
[build-system]
requires = ["uv_build>=0.11,<1.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "modern_di_aiogram"
module-root = ""
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D1", # docstrings are not forced; a docstring exists when it says something
"D203", # conflicts with D211
"D213", # conflicts with D212
"COM812", # conflicts with the formatter
"ISC001", # conflicts with the formatter
"CPY001", # no per-file copyright header
"FBT", # boolean positional arguments are fine
"TCH", # imports stay real; TYPE_CHECKING-only imports break runtime introspection
]
isort.lines-after-imports = 2
isort.no-lines-before = ["standard-library", "local-folder"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ""
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.report]
fail_under = 100
exclude_also = [
"if typing.TYPE_CHECKING:",
]