forked from love-apples/maxapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (97 loc) · 2.81 KB
/
pyproject.toml
File metadata and controls
113 lines (97 loc) · 2.81 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
[project]
name = "maxapi"
version = "0.9.13"
description = "Библиотека для разработки чат-ботов с помощью API мессенджера MAX"
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "Denis", email = "bestloveapples@gmail.com" }]
keywords = ["max", "api", "bot"]
classifiers = [
"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 = [
"aiohttp>=3.10,<4",
"magic_filter>=1.0.0,<2",
"pydantic>=2,<3",
"aiofiles>=24.1,<26",
"puremagic>=1.30,<2",
]
[project.urls]
Homepage = "https://github.com/love-apples/maxapi"
[tool.setuptools]
license-files = []
[build-system]
requires = [
"setuptools>=82.0.0",
"wheel>=0.46.3",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["maxapi*", "wiki*", "examples*"]
[project.optional-dependencies]
webhook = [
"fastapi>=0.103.0,<1",
"uvicorn>=0.15.0,<1",
]
[dependency-groups]
dev = [
"pytest>=9.0",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.15",
"mypy>=1.19.1",
"types-aiofiles>=25.1.0",
"pre-commit>=4.0",
"coverage>=7.13",
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.1",
"mkdocstrings[python]>=1.0.3",
"pymdown-extensions>=10.21",
"python-dotenv>=1.2.1",
"Faker>=40.4.0",
]
[tool.uv]
# Enable uv project management and include `dev` group by default when running/syncing
default-groups = ["dev"]
managed = true
[tool.mypy]
python_version = "3.10"
namespace_packages = true
ignore_missing_imports = true
exclude = ["core/yandex/cloud", "core/google"]
check_untyped_defs = true
[tool.pytest.ini_options]
# Путь к тестам
testpaths = ["tests"]
# Автоматический режим для asyncio
asyncio_mode = "auto"
# Параметры запуска
addopts = "-ra --strict-markers -v -W ignore::pytest.PytestUnraisableExceptionWarning"
# Маркеры
markers = [
"integration: интеграционные тесты, требующие реальный токен бота",
"slow: медленные тесты",
]
# Фильтры предупреждений
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
]
[tool.ruff]
src = [ "maxapi", "tests" ]
exclude = ["core/yandex/cloud", "core/google"]
line-length = 79
indent-width = 4
target-version = "py310"
[tool.ruff.format]
# Настройки форматтера Ruff для единообразного стиля кода
quote-style = "double"
indent-style = "space"
line-ending = "lf"
skip-magic-trailing-comma = false
docstring-code-format = true