-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
140 lines (125 loc) · 3 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
132
133
134
135
136
137
138
139
140
[tool.poetry]
name = "audible"
version = "0.10.0"
description = "A(Sync) Interface for internal Audible API written in pure Python."
authors = ["mkb79 <[email protected]>"]
license = "AGPL-3.0-only"
readme = "README.md"
homepage = "https://github.com/mkb79/Audible"
repository = "https://github.com/mkb79/Audible"
documentation = "https://audible.readthedocs.io"
packages = [
{ include = "audible", from = "src" },
]
keywords = [
"Audible",
"API",
"async"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
[tool.poetry.urls]
Changelog = "https://github.com/mkb79/Audible/releases"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
Pillow = ">=9.4.0"
beautifulsoup4 = ">=4.11.2"
httpx = ">=0.23.3"
pbkdf2 = ">=1.3"
pyaes = ">=1.6.1"
rsa = ">=4.9"
[tool.poetry.group.dev.dependencies]
Pygments = ">=2.10.0"
coverage = {extras = ["toml"], version = ">=6.2"}
darglint = ">=1.8.1"
mypy = ">=0.930"
myst-parser = {version = ">=0.16.1"}
pre-commit = ">=2.16.0"
pre-commit-hooks = ">=4.1.0"
pytest = ">=6.2.5"
pytest-mock = ">=3.10.0"
ruff = ">=0.3.7"
safety = ">=1.10.3"
sphinx = ">=4.3.2"
sphinx-autobuild = ">=2021.3.14"
sphinx-autodoc-typehints = ">=1.22"
sphinx-rtd-theme = ">=1.2.0"
sphinxcontrib-httpdomain = ">=1.8.1"
typeguard = ">=2.13.3"
xdoctest = {extras = ["colors"], version = ">=0.15.10"}
[tool.poetry_bumpversion.file."src/audible/__init__.py"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["audible", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 10 # temporarily drop complexity, target is 100
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]
[tool.mypy]
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict = true
warn_unreachable = true
[tool.ruff]
# missing rst-docstrings check, these should be adding through ruff
line-length = 88
src = ["src"]
target-version = "py310"
output-format = "grouped"
[tool.ruff.lint]
ignore = [
"D10", # temporarily ignore missing docstrings
"E501",
"N818",
"PLR0912", # temporarily
"PLR0913", # temporarily
"PLR0915", # temporarily
"PLR2004", # temporarily
]
select=[
"A",
"ASYNC",
"B",
"C4",
"C90",
"D",
"E",
"F",
"G",
"I",
"N",
"PGH",
"PL",
"Q",
"RUF",
"S",
"UP",
"W",
]
[tool.ruff.lint.mccabe]
max-complexity = 21 # temporarily raise complexity, target is 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["audible"]
lines-after-imports = 2
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"