-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (114 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (114 loc) · 2.67 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
[build-system]
requires = ["setuptools==83.0.0", "wheel==0.47.0"]
build-backend = "setuptools.build_meta"
[project]
name = "telegram-resender"
version = "1.6.2"
description = "Telegram bot that forwards authorized user messages to a target chat."
readme = "README.md"
license = "GPL-3.0-only"
keywords = ["telegram", "bot", "resender", "aiogram", "pydantic", "pytest"]
requires-python = ">=3.12"
authors = [{ name = "krotname" }]
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"aiogram>=3.28.2,<4.0.0",
"pydantic>=2.8.0,<3.0.0",
"pydantic-settings>=2.5.0,<3.0.0",
]
[project.optional-dependencies]
dev = [
"mypy>=1.11.0,<3.0.0",
"pytest>=9.0.0,<10.0.0",
"pytest-asyncio>=1.0.0,<2.0.0",
"pytest-cov>=5.0.0,<8.0.0",
"pytest-mock>=3.14.0,<4.0.0",
"ruff>=0.6.0,<0.16.0",
"build>=1.2.0,<2.0.0",
]
[project.scripts]
telegram-resender = "telegram_resender.cli:main"
[project.urls]
Homepage = "https://github.com/krotname/TelegramResenderBot"
Source = "https://github.com/krotname/TelegramResenderBot"
[tool.pytest.ini_options]
minversion = "9.0"
addopts = [
"--strict-markers",
"--strict-config",
"--cov=telegram_resender",
"--cov-report=term-missing",
"--cov-fail-under=70",
]
testpaths = [
"tests/unit",
"tests/integration",
"tests/conversation",
"tests/security",
]
pythonpath = [
"src",
]
asyncio_mode = "auto"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"conversation: Bot conversation tests",
"security: Security checks and hardening tests",
]
[tool.ruff]
line-length = 100
target-version = "py312"
lint.select = [
"E",
"W",
"F",
"I",
"UP",
"B",
"SIM",
]
lint.ignore = [
"SIM102",
]
lint.unfixable = ["B007"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.mypy]
python_version = "3.12"
strict = true
mypy_path = ["src"]
explicit_package_bases = true
warn_unused_configs = true
warn_unreachable = true
show_error_codes = true
[tool.coverage.run]
branch = true
source = ["telegram_resender"]
omit = [
"src/telegram_resender/__main__.py",
]
[tool.coverage.report]
skip_empty = true
skip_covered = false
precision = 2
show_missing = true
fail_under = 70
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]