-
Notifications
You must be signed in to change notification settings - Fork 66
/
pyproject.toml
131 lines (116 loc) · 3.46 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
requires = ["setuptools >=67", "setuptools-scm >=8"]
build-backend = "setuptools.build_meta"
[project]
name = "qbittorrent-api"
requires-python = ">=3.9"
description = "Python client for qBittorrent v4.1+ Web API."
authors = [{name = "Russell Martin"}]
maintainers = [{name = "Russell Martin"}]
keywords = ["python", "qbittorrent", "api", "client", "torrent", "torrents", "webui", "web"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
"Topic :: Communications :: File Sharing",
]
dynamic = ["readme", "version"]
dependencies = [
"packaging",
"requests >=2.16.0",
"urllib3 >=1.24.2",
]
[project.optional-dependencies]
dev = [
"build ==1.2.2.post1",
"coverage[toml] ==7.6.8",
"mypy ==1.13.0",
"pre-commit ==4.0.1",
"pytest ==8.3.3",
"tox ==4.23.2",
"twine ==6.0.1",
"types-requests ==2.32.0.20241016",
]
docs = [
# building docs requires Python >3.10
"furo ==2024.8.6",
"sphinx ==8.1.3",
"sphinx-autobuild ==2024.10.3",
"sphinx-copybutton ==0.5.2",
"sphinxcontrib-spelling ==8.0.0",
"sphinx-autodoc-typehints ==2.5.0",
]
[project.urls]
"Homepage" = "https://github.com/rmartin16/qbittorrent-api"
"Documentation" = "https://qbittorrent-api.readthedocs.io/"
"API Reference" = "https://qbittorrent-api.readthedocs.io/en/latest/api.html"
"Source" = "https://github.com/rmartin16/qbittorrent-api"
[tool.setuptools.dynamic]
readme = {file = ["README.md", "CHANGELOG.md", "LICENSE"], content-type = "text/markdown"}
[tool.setuptools_scm]
# section must be present to trigger its use
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = ["C40", "C9", "E", "F", "PLE", "S", "W", "YTT", "I", "UP", "SIM"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["C408", "S101", "S108", "S110", "S106", "S105", "C901"]
[tool.pytest.ini_options]
addopts = """
--doctest-modules
-v
"""
filterwarnings = ["error"]
markers = [
"skipif_before_api_version(api_version): skips test for current api version",
"skipif_after_api_version(api_version): skips test for current api version",
]
norecursedirs = "dist build .tox scripts"
testpaths = ["tests"]
[tool.coverage.run]
parallel = true
branch = true
relative_files = true
source_pkgs = ["qbittorrentapi"]
omit = ["**/_attrdict.py"]
[tool.coverage.paths]
source = [
"src",
"**/site-packages",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
precision = 1
exclude_lines = [
# search categories was deprecated
"class SearchCategoriesList",
"def search_categories",
# defaults to exclude
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.coverage.html]
skip_empty = true