mirror of https://github.com/yutto-dev/yutto
133 lines
3.0 KiB
TOML
133 lines
3.0 KiB
TOML
[project]
|
|
name = "yutto"
|
|
version = "2.0.3"
|
|
description = "🧊 一个可爱且任性的 B 站视频下载器"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
authors = [{ name = "Nyakku Shigure", email = "sigure.qaq@gmail.com" }]
|
|
keywords = ["python", "bilibili", "video", "downloader", "danmaku"]
|
|
license = { text = "GPL-3.0" }
|
|
classifiers = [
|
|
"Environment :: Console",
|
|
"Operating System :: OS Independent",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
"Typing :: Typed",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
]
|
|
dependencies = [
|
|
"aiofiles>=24.1.0",
|
|
"biliass==2.2.2",
|
|
"colorama>=0.4.6; sys_platform == 'win32'",
|
|
"typing-extensions>=4.13.1",
|
|
"dict2xml>=1.7.6",
|
|
"httpx[http2,socks]>=0.28.1",
|
|
"tomli>=2.0.2; python_version < '3.11'",
|
|
"pydantic>=2.11.2",
|
|
"returns>=0.25.0",
|
|
]
|
|
optional-dependencies.mcp = ["mcp[cli]>=1.6.0"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/yutto-dev/yutto"
|
|
Documentation = "https://github.com/yutto-dev/yutto"
|
|
Repository = "https://github.com/yutto-dev/yutto"
|
|
Issues = "https://github.com/yutto-dev/yutto/issues"
|
|
|
|
[project.scripts]
|
|
yutto = "yutto.__main__:main"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pyright>=1.1.398",
|
|
"ruff>=0.11.4",
|
|
"typos>=1.31.1",
|
|
"pytest>=8.3.5",
|
|
"pytest-rerunfailures>=15.0",
|
|
"syrupy>=4.9.0",
|
|
"pytest-codspeed>=3.2.0",
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
biliass = { workspace = true }
|
|
|
|
[tool.uv.workspace]
|
|
members = ["packages/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = ["api", "e2e", "processor", "biliass", "ignore", "ci_skip", "ci_only"]
|
|
|
|
[tool.pyright]
|
|
include = ["src/yutto", "packages/biliass/src/biliass", "tests"]
|
|
pythonVersion = "3.10"
|
|
typeCheckingMode = "strict"
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
# Pyflakes
|
|
"F",
|
|
# Pycodestyle
|
|
"E",
|
|
"W",
|
|
# Isort
|
|
"I",
|
|
# Comprehensions
|
|
"C4",
|
|
# Debugger
|
|
"T100",
|
|
# Pyupgrade
|
|
"UP",
|
|
# Flake8-pyi
|
|
"PYI",
|
|
# Bugbear
|
|
"B",
|
|
# Pylint
|
|
"PLE",
|
|
# Flake8-simplify
|
|
"SIM101",
|
|
# Flake8-use-pathlib
|
|
"PTH",
|
|
# Pygrep-hooks
|
|
"PGH004",
|
|
# Flake8-type-checking
|
|
"TC",
|
|
# Flake8-raise
|
|
"RSE",
|
|
# Refurb
|
|
"FURB",
|
|
# Flake8-future-annotations
|
|
"FA",
|
|
# Yesqa
|
|
"RUF100",
|
|
]
|
|
ignore = [
|
|
"E501", # line too long, duplicate with ruff fmt
|
|
"F401", # imported but unused, duplicate with pyright
|
|
"F841", # local variable is assigned to but never used, duplicate with pyright
|
|
"UP038", # It will cause the performance regression on python3.10
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
required-imports = ["from __future__ import annotations"]
|
|
known-first-party = ["yutto"]
|
|
combine-as-imports = true
|
|
|
|
[tool.ruff.lint.flake8-type-checking]
|
|
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"setup.py" = ["I"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|