Добавить поддержку проверки типов и настройки линтинга, а также изменить точку входа в приложение
CI / Quality Checks (push) Successful in 13s
CI / Test Suite (push) Successful in 11s

This commit is contained in:
ВяткинАртём
2026-05-27 17:31:44 +03:00
parent d7cbd876ea
commit 2353a006a6
3 changed files with 19 additions and 5 deletions
+16
View File
@@ -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"
]
}
+3 -5
View File
@@ -1,11 +1,9 @@
from __future__ import annotations from __future__ import annotations
import runpy
import sys import sys
from pathlib import Path from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent / 'src'))
from yt_shorts_downloader.cli import main
if __name__ == '__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__')
View File