-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (78 loc) · 1.67 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
84
85
86
87
88
89
90
91
92
[tool.poetry]
name = "src"
version = "0.1.0"
description = "Telegram bot to solve cartography issues"
authors = ["likeinlife <likeinlife48@yandex.ru>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
aiogram = "3.4.1"
tabulate = "^0.9.0"
python-dotenv = "^1.0.0"
pillow = "^9.4.0"
pydantic-settings = "^2.1.0"
dependency-injector = "^4.41.0"
structlog = "^24.1.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.0.1"
ruff = "^0.1.14"
pre-commit = "^3.6.0"
types-pillow = "^10.2.0.20240213"
[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
coverage = "^7.4.1"
pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[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"