Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (74 loc) · 1.63 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (74 loc) · 1.63 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
[project]
name = "spnpbot"
version = "0.1.2"
description = "A Telegram bot that shares your currently playing Spotify track via inline queries"
readme = "README.md"
requires-python = ">=3.15,<3.16"
dependencies = [
"aiogram>=3.30.0",
"aiosqlite>=0.20.0",
"alembic>=1.19.1",
"cachetools>=7.1.7",
"cryptography>=50.0.0",
"fastapi[standard]>=0.141.1",
"httpx>=0.28.1",
"psycopg[binary,pool]>=3.3.4",
"pydantic>=2.11.7",
"pydantic-settings>=2.15.0",
"pyyaml>=6.0",
"respx>=0.22.0",
"rich>=13.9.4",
"sentry-sdk[fastapi]>=2.66.1",
"sqlalchemy[asyncio]>=2.0.51",
"sqlmodel>=0.0.39",
]
[dependency-groups]
dev = [
"fastapi-cli>=0.0.32",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.14.1",
"ruff>=0.16.2",
"ty>=0.0.69",
]
[tool.fastapi]
entrypoint = "app.main:app"
[tool.ruff]
exclude = [
"migrations",
".venv",
"__pycache__",
]
[tool.ruff.lint.per-file-ignores]
"tests/conftest.py" = ["E402"]
[tool.ty.src]
exclude = ["migrations"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--cov=app",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-fail-under=90",
]
filterwarnings = [
"ignore::ResourceWarning",
"ignore::pydantic.warnings.UnsupportedFieldAttributeWarning",
]
[tool.coverage.run]
source = ["app"]
omit = [
"*/tests/*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]