-
Notifications
You must be signed in to change notification settings - Fork 213
/
pyproject.toml
83 lines (68 loc) · 1.68 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
82
83
[project]
name = "ytmusicapi"
description = "Unofficial API for YouTube Music"
requires-python = ">=3.9"
authors=[{name = "sigma67", email= "[email protected]"}]
license={file="LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"requests >= 2.22",
]
dynamic = ["version", "readme"]
[project.scripts]
ytmusicapi = "ytmusicapi.setup:main"
[project.urls]
homepage = "https://github.com/sigma67/ytmusicapi"
documentation = "https://ytmusicapi.readthedocs.io"
repository = "https://github.com/sigma67/ytmusicapi"
[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
readme = {file = ["README.rst"]}
[tool.setuptools_scm]
[tool.setuptools]
include-package-data=false
[tool.setuptools.package-data]
"*" = ["**.rst", "**.py", "**.mo"]
###############
# DEVELOPMENT #
###############
[tool.pytest.ini_options]
python_functions = "test_*"
testpaths = ["tests"]
addopts = "--verbose --cov --junitxml=junit.xml --retries 2 --retry-delay 5"
[tool.coverage.run]
source = ["ytmusicapi"]
[tool.coverage.report]
precision = 2
[tool.ruff]
line-length = 110
[tool.ruff.lint]
ignore = [ "F403", "F405", "F821", "E731", "PTH123" ]
extend-select = [
"I", # isort
"UP", # pyupgrade
"RUF", # ruff
"PTH", # pathlib
]
[tool.mypy]
files = [
"ytmusicapi/"
]
mypy_path = "ytmusicapi"
[tool.pdm.dev-dependencies]
dev = [
"coverage>=7.4.0",
'sphinx<7',
'sphinx-rtd-theme',
"ruff>=0.8.3",
"mypy>=1.13.0",
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
"types-requests>=2.31.0.20240218",
"pytest-retry>=1.6.3",
]