yt-dlp-bot/pyproject.toml

89 lines
1.3 KiB
TOML
Raw Normal View History

2024-04-10 03:09:33 +08:00
[tool.ruff]
2022-12-24 20:26:55 +08:00
line-length = 88
2024-04-10 03:09:33 +08:00
indent-width = 4
target-version = "py312"
2025-02-02 00:43:36 +08:00
src = [
"app_api",
"app_bot",
"app_worker"
]
required-version = ">=0.9"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
2023-12-13 05:49:20 +08:00
2024-04-10 03:09:33 +08:00
[tool.ruff.lint]
2025-02-02 00:43:36 +08:00
select = ["ALL"]
ignore = [
"ANN002",
"ANN003",
"ANN401",
"ASYNC110",
"BLE001",
"COM812",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D203",
"D213",
"E501",
"EM101",
"EM102",
"FAST002",
"FBT001",
"FBT002",
"FIX002",
"INP001",
"ISC001",
"PERF401",
"TD002",
"TD003",
"TRY003",
]
2024-03-21 01:25:07 +08:00
2024-04-10 03:09:33 +08:00
[tool.ruff.format]
2023-12-13 05:49:20 +08:00
indent-style = "space"
quote-style = "single"
line-ending = "lf"
2025-02-02 00:43:36 +08:00
docstring-code-format = true
[tool.pylint]
init-hook = "import sys; sys.path.append('./yt_shared')"
[tool.mypy]
mypy_path = [
"app_bot",
"app_api",
"app_worker"
]
explicit_package_bases = true
namespace_packages = true
[tool.uv.sources]
yt-shared = { path = "yt_shared" }
app-api = { path = "app_api" }
app-bot = { path = "app_bot" }
app-worker = { path = "app_worker" }
[project]
name = "yt-dlp-bot"
version = "0.1.0"
requires-python = ">=3.12"
description = "Add your description here"
readme = "README.md"
dependencies = [
"app-api",
"app-bot",
"app-worker",
"yt-shared",
]
[dependency-groups]
lint = [
"ruff>=0.9.4",
]