|
|
|
@ -67,8 +67,13 @@ build = [
|
|
|
|
|
dev = [
|
|
|
|
|
"autopep8~=2.0",
|
|
|
|
|
"pre-commit",
|
|
|
|
|
"pytest",
|
|
|
|
|
"ruff==0.4.*",
|
|
|
|
|
"ruff~=0.4",
|
|
|
|
|
]
|
|
|
|
|
test = [
|
|
|
|
|
"pytest~=8.1",
|
|
|
|
|
"pytest-randomly~=3.15",
|
|
|
|
|
"pytest-rerunfailures~=14.0",
|
|
|
|
|
"pytest-xdist[psutil]~=3.5",
|
|
|
|
|
]
|
|
|
|
|
pyinstaller = [
|
|
|
|
|
"pyinstaller>=6.3; sys_platform!='darwin'",
|
|
|
|
@ -124,7 +129,7 @@ path = "yt_dlp/version.py"
|
|
|
|
|
pattern = "_pkg_version = '(?P<version>[^']+)'"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.default]
|
|
|
|
|
features = ["dev"]
|
|
|
|
|
features = ["default", "dev", "test"]
|
|
|
|
|
path = ".venv"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.default.scripts]
|
|
|
|
@ -133,10 +138,7 @@ yt-dlp = "python -Werror -Xdev -m yt_dlp {args}"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-static-analysis]
|
|
|
|
|
detached = true
|
|
|
|
|
dependencies = [
|
|
|
|
|
"autopep8~=2.0",
|
|
|
|
|
"ruff==0.4.*",
|
|
|
|
|
]
|
|
|
|
|
features = ["dev"]
|
|
|
|
|
config-path = "pyproject.toml"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-static-analysis.scripts]
|
|
|
|
@ -146,13 +148,7 @@ lint-check = "ruff check {args:.}"
|
|
|
|
|
lint-fix = "ruff check --fix {args:.}"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-test]
|
|
|
|
|
features = ["default"]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"pytest~=8.1",
|
|
|
|
|
"pytest-randomly~=3.15",
|
|
|
|
|
"pytest-rerunfailures~=14.0",
|
|
|
|
|
"pytest-xdist[psutil]~=3.5",
|
|
|
|
|
]
|
|
|
|
|
features = ["curl-cffi", "default", "test"]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.envs.hatch-test.scripts]
|
|
|
|
|
run = "python -m devscripts.run_tests {args}"
|
|
|
|
|