Обновить настройки инструмента Ruff и MyPy для улучшения линтинга и проверки типов
CI / Quality Checks (push) Failing after 9s
CI / Test Suite (push) Successful in 12s

This commit is contained in:
ВяткинАртём
2026-05-27 17:09:15 +03:00
parent 59aaa9c4d7
commit 1c3228e039
+14 -12
View File
@@ -35,29 +35,31 @@ where = ["src"]
yt_shorts_downloader = ["py.typed"]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
line-length = 160
target-version = "py312"
src = ["src", "tests"]
[tool.ruff.format]
quote-style = "double"
quote-style = "single"
indent-style = "space"
[tool.ruff.lint]
select = ["B", "E", "F", "I", "PL", "RUF", "SIM", "UP"]
ignore = ["PLR0913", "PLR2004"]
select = ["E", "F", "I", "UP", "B", "Q", "ERA", "D", "SIM", "ARG", "RUF", "C4", "RET", "ASYNC", "PERF", "PL"]
ignore = ["D100", "RUF002", "D107", "RUF001", "D104", "D203", "D213", "ARG001"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "double"
docstring-quotes = "double"
avoid-escape = true
[tool.mypy]
python_version = "3.12"
python_version = "3.13"
strict = true
warn_unused_ignores = 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"