/
pyproject.toml
81 lines (71 loc) · 1.99 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bilili"
description = "🍻 bilibili video and danmaku downloader | B站视频、弹幕下载器"
readme = "README.md"
requires-python = ">=3.8"
authors = [{ name = "Nyakku Shigure", email = "sigure.qaq@gmail.com" }]
keywords = ["python", "bilibili", "video", "download", "spider", "danmaku"]
license = { text = "GPLv3" }
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = ["requests", "biliass==1.3.11"]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"ruff==0.4.5",
"pytest-rerunfailures>=11.0",
"build",
] # fmt: skip
[project.urls]
Homepage = "https://github.com/yutto-dev/bilili"
Documentation = "https://bilili.nyakku.moe/"
[project.scripts]
bilili = "bilili.__main__:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = { attr = "bilili.__version__.VERSION" }
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# Isort
"I",
# Pyupgrade
"UP",
# Flake8-pyi
"PYI",
# Yesqa
"RUF100",
]
ignore = [
"E501", # line too long, duplicate with ruff fmt
"E731", # lambda sometimes is more readable
"F401", # imported but unused, duplicate with pyright
"F841", # local variable is assigned to but never used, duplicate with pyright
]
[tool.ruff.lint.isort]
known-first-party = ["bilili"]
[tool.pytest.ini_options]
markers = ["api", "e2e", "ci_skip", "ci_only"]