From 1c3228e0390483f27ef04dd9f8119cc83c293031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=82=D0=BA=D0=B8=D0=BD=D0=90=D1=80=D1=82?= =?UTF-8?q?=D1=91=D0=BC?= Date: Wed, 27 May 2026 17:09:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B8=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=20Ruff=20=D0=B8=20MyPy=20=D0=B4=D0=BB=D1=8F=20=D1=83?= =?UTF-8?q?=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BB=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B8=D0=BD=D0=B3=D0=B0=20=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D1=82=D0=B8=D0=BF=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e6d62ef..b8e20a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"