-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
200 lines (172 loc) · 4.26 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "telegram-wallet-pay"
dynamic = ["version"]
description = "Async client for Telegram Wallet Pay API"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
authors = [
{ name = "Oleg Abramov", email = "oleg@trueweb.app" },
]
maintainers = [
{ name = "Oleg Abramov", email = "oleg@trueweb.app" },
]
keywords = [
"Telegram",
"Wallet",
"Pay",
"API",
"async",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Framework :: Pydantic",
"Intended Audience :: Customer Service",
"Intended Audience :: Financial and Insurance Industry",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
]
dependencies = [
"aiohttp>=3.8,<4",
"pydantic>=2.4,<3",
"certifi>=2023",
]
[project.optional-dependencies]
dev = [
"ruff>=0,<1",
"mypy>=1,<2",
"pre-commit>=3,<5",
"fastapi-slim>=0.111,<1",
"uvicorn>=0.29,<1",
"httpx>=0.27,<1",
"aiogram>=3.6,<4"
]
test = [
"coverage>=7,<8",
"pytest>=8,<9",
"pytest-asyncio>=0,<1",
"pytest-aiohttp>=1.0,<2",
"pytest-cov>=5,<7",
"aresponses>=3,<4",
"fastapi-slim>=0.111,<1",
"httpx>=0.27,<1",
]
[project.urls]
Repository = "https://github.com/Olegt0rr/TelegramWalletPay"
Documentation = "https://docs.wallet.tg/pay/"
[tool.hatch.version]
path = "telegram_wallet_pay/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]
[tool.hatch.envs.default]
features = [
"dev",
"test",
]
post-install-commands = [
"pre-commit install",
]
[tool.hatch.envs.default.scripts]
lint = [
"ruff check telegram_wallet_pay --fix",
]
[tool.hatch.envs.dev]
python = "3.9"
features = [
"dev",
"test",
]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "310", "311", "312", "313"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests",
]
filterwarnings = [
"error",
"ignore::pytest.PytestUnraisableExceptionWarning",
]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"pragma: no cover",
"if TYPE_CHECKING:",
"@abstractmethod",
"@overload",
]
[tool.mypy]
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = true
warn_unreachable = true
pretty = true
[[tool.mypy.overrides]]
module = "*.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "examples.*"
ignore_errors = true
[tool.ruff]
src = ["app", "tools", "tests"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Assume minimal Python version
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["A003", "ANN002", "ANN003", "ANN101", "ANN102", "D100", "D101", "D106", "D107", "D104", "D203", "D213", "DTZ005", "FA100", "RUF001", "RUF002", "RUF003", "S101", "TCH001", "TCH002", "PT015", "PT017", "B011"]
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel", "telegram_wallet_pay.schemas._default.DefaultModel"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN401", "D", "FBT001", "INP001", "S101", "SLF001"]
"examples/*" = ["INP001", "T201"]