Refactor code structure for improved readability and maintainability
This commit is contained in:
+62
-2
@@ -1,7 +1,67 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=80.0.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "yt-shorts-downloader"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
description = "Typed library and CLI for downloading YouTube Shorts as MP4 via Netscape cookie sessions"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = []
|
||||
dependencies = [
|
||||
"yt-dlp>=2024.12.13",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
yt-shorts-downloader = "yt_shorts_downloader.cli:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"deptry>=0.24.0",
|
||||
"mypy>=1.14.1",
|
||||
"pytest>=8.3.4",
|
||||
"pytest-cov>=6.0.0",
|
||||
"ruff>=0.8.4",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "src"}
|
||||
include-package-data = true
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
yt_shorts_downloader = ["py.typed"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
src = ["src", "tests"]
|
||||
target-version = "py312"
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["B", "E", "F", "I", "PL", "RUF", "SIM", "UP"]
|
||||
ignore = ["PLR0913", "PLR2004"]
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.12"
|
||||
strict = true
|
||||
warn_redundant_casts = true
|
||||
warn_unreachable = true
|
||||
warn_unused_ignores = true
|
||||
show_error_codes = true
|
||||
pretty = true
|
||||
explicit_package_bases = true
|
||||
files = ["src", "tests"]
|
||||
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/stubs"
|
||||
|
||||
[tool.deptry.package_module_name_map]
|
||||
"yt-dlp" = "yt_dlp"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = ["-ra", "--strict-config", "--strict-markers", "--color=yes"]
|
||||
testpaths = ["tests"]
|
||||
|
||||
Reference in New Issue
Block a user