From 2353a006a6a34a97199d7f89905cfeb0765701db 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:31:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D1=83?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BF=D0=BE=D0=B2=20=D0=B8=20=D0=BD=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BB=D0=B8=D0=BD=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=D0=B3=D0=B0,=20=D0=B0=20=D1=82=D0=B0=D0=BA=D0=B6=D0=B5?= =?UTF-8?q?=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82=D1=8C=20=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=BA=D1=83=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 16 ++++++++++++++++ main.py | 8 +++----- src/yt_shorts_downloader/py.typed | 0 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/yt_shorts_downloader/py.typed diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..385d432 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,16 @@ +{ + "mypy-type-checker.args": [ + "--config-file", + "${workspaceFolder}/pyproject.toml" + ], + "mypy-type-checker.cwd": "${workspaceFolder}", + "mypy-type-checker.path": [ + "${interpreter}", + "-m", + "mypy" + ], + "python.analysis.extraPaths": [ + "${workspaceFolder}/src", + "${workspaceFolder}/stubs" + ] +} \ No newline at end of file diff --git a/main.py b/main.py index 2e39732..c058f0d 100644 --- a/main.py +++ b/main.py @@ -1,11 +1,9 @@ from __future__ import annotations +import runpy import sys from pathlib import Path -sys.path.insert(0, str(Path(__file__).resolve().parent / 'src')) - -from yt_shorts_downloader.cli import main - if __name__ == '__main__': - raise SystemExit(main()) + sys.path.insert(0, str(Path(__file__).resolve().parent / 'src')) + runpy.run_module('yt_shorts_downloader', run_name='__main__') diff --git a/src/yt_shorts_downloader/py.typed b/src/yt_shorts_downloader/py.typed new file mode 100644 index 0000000..e69de29