-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (94 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
107 lines (94 loc) · 2.09 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
[project]
name = "src"
version = "0.1.0"
description = "Telegram bot to solve cartography issues"
authors = [{ name = "likeinlife", email = "likeinlife48@yandex.ru" }]
requires-python = ">=3.10,<4"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"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",
]
dependencies = [
"aiogram==3.4.1",
"tabulate>=0.9.0,<0.10",
"python-dotenv>=1.0.0,<2",
"pillow==12.1.1",
"pydantic-settings>=2.1.0,<3",
"dependency-injector==4.48.3",
"structlog>=24.1.0,<25",
]
[dependency-groups]
dev = [
"mypy>=1.0.1,<2",
"ruff==0.15.2",
"pre-commit>=3.6.0,<4",
"types-pillow>=10.2.0.20240213,<11",
]
test = [
"pytest>=8.0.0,<9",
"coverage>=7.4.1,<8",
"pytest-cov>=4.1.0,<5",
]
[tool.uv]
default-groups = "all"
[tool.uv.build-backend]
module-root = ""
[build-system]
requires = ["uv_build>=0.10.4,<0.11.0"]
build-backend = "uv_build"
[tool.mypy]
plugins = ["pydantic.mypy"]
[tool.django-stubs]
django_settings_module = "config.settings"
[tool.ruff]
line-length = 120
select = ["D", "B", "S", "A", "C4", "T10", "F", "Q"]
ignore = [
"D100",
"D107",
"D101",
"D106",
"D103",
"D104",
"D102",
"D105",
"D203",
"D212",
"D407",
"D417",
"B008",
"B904",
"A003",
]
exclude = ["__init__.py"]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["S"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.coverage.run]
omit = [
"*/micrometr/*",
"*/tg_bot/*",
"*/cartography/image_drawer/*",
"*/cartography/Image_generator/*",
"*/facades/*",
"src/*.py",
"models.py",
"__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
]
[tool.pytest.ini_options]
pythonpath = "src"