-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
85 lines (73 loc) · 1.63 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
[project]
name = "kpi-radio"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "Kulunchick", email = "[email protected]" }
]
dependencies = [
"aiogram>=3.12.0",
"aiogram-dialog>=2.1.0",
"pydantic-settings>=2.4.0",
"sqlalchemy>=2.0.32",
"python-mpv>=1.0.7",
"yt-dlp>=2024.8.6",
"aiosqlite>=0.20.0",
"apscheduler>=3.10.4",
"fastapi>=0.114.0",
"uvicorn>=0.30.6",
"ngrok>=1.4.0",
"redis>=5.0.8",
"langdetect>=1.0.9",
"spotipy>=2.24.0",
"ytmusicapi>=1.8.2",
"greenlet==3.1.1",
]
readme = "README.md"
requires-python = ">= 3.9"
[tool.poetry]
package-mode = false
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
virtual = true
dev-dependencies = [
"ruff>=0.6.5",
"mypy>=1.11.1",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/kpi_radio"]
[tool.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"C901", # too complex
]
[tool.mypy]
plugins = [
"pydantic.mypy"
]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/stubs"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true