-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (104 loc) · 2.13 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
[tool.poetry]
name = "ecology_bot"
version = "0.2.0"
description = "Ecology Telegram bot with admin panel"
authors = ["Sergey Natalenko <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^1.9.2"
aiogram = "^2.22"
aiogram-dialog = "^1.8.0"
psycopg2-binary = "^2.9.3"
Flask = "^2.2.2"
Flask-Admin = "^1.6.0"
Flask-Login = "^0.6.2"
Flask-SQLAlchemy = "^2.5.1"
Flask-WTF = "^1.0.1"
gunicorn = "^20.1.0"
alembic = "^1.8.1"
asyncpg = "^0.30.0"
celery = "^5.2.7"
redis = "^4.3.4"
aiocache = {extras = ["redis"], version = "^0.11.1"}
ujson = "^5.5.0"
msgpack = "^1.0.4"
aioredis = "1.3.1"
sqlalchemy = "^2.0.36"
aiomisc = "^17.5.26"
[tool.poetry.group.dev.dependencies]
pytest = "8.2"
aiomisc-pytest = "^1.2.1"
mypy = "^1.11.2"
pre-commit = "^3.8.0"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.24.0"
dirty-equals = "^0.8.0"
ruff = "^0.6.8"
[tool.poetry.scripts]
bot = "ecology_bot.presentors.bot.main:start"
admin = "ecology_bot.admin.wsgi:app"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
python_files = "test_*"
python_functions = "test_*"
python_classes = "TestSuite*"
addopts = "-p no:cacheprovider"
[tool.coverage.run]
branch = true
source = ["ecology_bot", "tests"]
command_line = "-m pytest"
[tool.coverage.report]
show_missing = true
[tool.coverage.xml]
output = "coverage.xml"
[tool.ruff]
line-length = 88
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
]
indent-width = 4
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
"BLE",
"C90",
"E",
"F",
"G",
"I",
"ICN",
"ISC",
"PLE",
"Q",
"RUF006",
"RUF100",
"T10",
"T20",
"TID",
"UP",
"W",
]
ignore = ["ISC001"]
fixable = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["ecology_bot", "tests"]
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = false
no_implicit_optional = true
[[tool.mypy.overrides]]
module = [
"asyncpg.*",
]
ignore_missing_imports = true