-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (157 loc) · 3.86 KB
/
pyproject.toml
File metadata and controls
174 lines (157 loc) · 3.86 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[build-system]
requires = ["uv_build>=0.11.6,<0.12"]
build-backend = "uv_build"
[project]
name = "anypod"
version = "0.1.0"
description = "Thin yt-dlp -> podcast solution"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"aiofiles>=24.1.0",
"aiosqlite>=0.21.0",
"alembic>=1.16.2",
"apscheduler>=3.11.0",
"croniter>=6.0.0",
"fastapi>=0.116.0",
"feedgen>=1.0.0",
"httpx>=0.28.1",
"pycountry>=24.6.1",
"pydantic>=2.11.3",
"pydantic-settings>=2.9.1",
"python-json-logger>=4.0.0",
"pytimeparse2>=1.7.1",
"pyyaml>=6.0.2",
"readerwriterlock>=1.0.9",
"sqlalchemy[asyncio]>=2.0.49",
"sqlite-utils>=3.38",
"sqlmodel>=0.0.24",
"uvicorn[standard]>=0.44.0",
"youtube-transcript-api>=1.2.3",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-mock>=3.14.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.7.0",
"respx>=0.22.0",
"ruff>=0.11.7",
"yt-dlp[default]>=2025.8.22",
"basedpyright>=1.31.7",
]
[project.scripts]
anypod = "anypod.__main__:main"
[tool.uv]
managed = true
[tool.pytest.ini_options]
minversion = "7.0"
pythonpath = ["src", "tests"]
testpaths = ["tests"]
addopts = "-ra -q --tb=short --disable-warnings --strict-markers -n 4"
filterwarnings = ["error"]
markers = [
"integration: mark slow integration tests",
"unit: mark fast, isolated unit tests",
]
log_cli = true
log_cli_level = "INFO"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
source = ["src"]
omit = [
"src/anypod/logging_config.py",
"src/anypod/cli/*",
"src/anypod/**/__main__.py",
"src/anypod/**/__init__.py",
] # we won't test the executable files
[tool.coverage.report]
fail_under = 70
show_missing = true
precision = 2
[tool.coverage.html]
directory = "coverage_html_report"
[tool.ruff]
line-length = 88
target-version = "py314"
exclude = [
".venv",
".git",
".tox",
"docs",
"venv",
"bin",
"lib",
"deps",
"build",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"PIE", # flake8-pie
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"RUF", # ruff-specific rules
"D", # pydocstyle checks
]
ignore = [
"E501", # line too long (handled by line-length)
"E203", # whitespace before ':'
"D105", # missing docstring in magic method
"D107", # missing docstring in init
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["custom_components.godspeed", "tests"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["D100", "D104"]
"**/__main__.py" = ["D100", "D104"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.basedpyright]
include = ["src", "tests"]
exclude = ["**/node_modules", "**/__pycache__", ".venv", "build", "dist"]
ignore = ["**/legacy/**"]
typeCheckingMode = "strict"
strict = ["src", "tests"]
pythonVersion = "3.14"
pythonPlatform = "All"
venvPath = "."
venv = ".venv"
useLibraryCodeForTypes = false
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
reportMissingImports = "error"
reportMissingTypeStubs = "error"
reportMissingModuleSource = "warning"
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportOptionalMemberAccess = "error"
reportOptionalCall = "error"
failOnWarnings = true
# Previous Ty experiment retained here for reference if we revisit it.
# [tool.ty.environment]
# python-version = "3.14"
#
# [tool.ty.src]
# include = ["src", "tests"]
# exclude = ["**/legacy/**"]
#
# [tool.ty.terminal]
# error-on-warning = true
# output-format = "concise"