-
Notifications
You must be signed in to change notification settings - Fork 66
/
pyproject.toml
74 lines (64 loc) · 1.52 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.isort]
profile = "black"
skip_glob = ["venv*"]
force_single_line = true
multi_line_output = 3
[tool.black]
target-version = ["py38"]
include = '\.pyi?$'
[tool.ruff]
select = ["C40", "C9", "E", "F", "PLE", "S", "W", "YTT"]
line-length = 121
target-version = "py38"
[tool.ruff.per-file-ignores]
"tests/*" = ["C408", "S101", "S108", "S110", "S106", "S105", "C901"]
[tool.ruff.mccabe]
max-complexity = 15
[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