-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 1.53 KB
/
pyproject.toml
File metadata and controls
80 lines (70 loc) · 1.53 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
[project]
name = "lex-tg"
version = "1.0.0"
description = "lex-tg: Advanced Telegram Chat Management Bot."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"kurigram",
"uvloop; sys_platform != 'win32'",
"sqlalchemy>=2.0",
"asyncpg",
"alembic",
"apscheduler>=3.10",
"pydantic-settings>=2.0",
"loguru",
"tgcrypto>=1.2.5",
"deep-translator>=1.11.4",
"python-dotenv>=1.2.2",
"langdetect>=1.0.9",
"emoji>=2.15.0",
"Pillow",
"httpx>=0.28.1",
"hebcal-api>=0.2.0",
"edge-tts>=7.2.8",
]
[project.scripts]
bot = "src.main:run"
translate = "scripts.translate:main"
lint = "scripts.dev:lint"
fmt = "scripts.dev:fmt"
typecheck = "scripts.dev:check"
test = "scripts.dev:test"
migrate = "scripts.dev:migrate"
[tool.uv]
compile-bytecode = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src", "scripts"]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"pytest-mock",
"pytest-mock",
"factory-boy",
"mypy",
"ruff",
"pylint",
"aiosqlite>=0.22.1",
"rich>=13.0.0",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"src/core/plugin.py" = ["B027"]
"tests/**/*.py" = ["F811"]
[tool.mypy]
python_version = "3.12"
strict = false
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]