-
Notifications
You must be signed in to change notification settings - Fork 34
/
pyproject.toml
152 lines (140 loc) · 2.9 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
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "transmission-rpc"
version = "7.0.11"
description = "Python module that implements the Transmission bittorent client JSON-RPC protocol"
authors = [
{ name = "trim21", email = "[email protected]" },
]
readme = 'README.md'
requires-python = "~=3.8"
license = { text = 'MIT' }
keywords = ['transmission', 'rpc']
classifiers = [
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'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',
'Programming Language :: Python :: Implementation :: PyPy',
]
dependencies = [
'requests~=2.23',
'typing-extensions>=4.5.0',
]
[project.urls]
Homepage = 'https://github.com/Trim21/transmission-rpc'
[project.optional-dependencies]
dev = [
# lint
'pre-commit==4.0.1; python_version >= "3.9"',
# tests
'yarl==1.13.1',
'pytest==8.3.3',
'pytest-github-actions-annotate-failures==0.2.0',
'coverage==7.6.1',
# types
'mypy==1.13.0',
'types-requests==2.32.0.20241016',
# docs
'sphinx>=8,<=8.1.3; python_version >= "3.10"',
'furo==2024.8.6; python_version >= "3.10"',
'sphinx-copybutton==0.5.2 ; python_version >= "3.10"',
'sphinx-new-tab-link==0.6.1; python_version >= "3.10"',
'sphinx-github-style==1.2.2 ; python_version >= "3.10"',
'sphinx-autobuild==2024.10.3; python_version >= "3.10"',
]
[tool.pytest.ini_options]
addopts = '-rav -Werror'
[tool.mypy]
python_version = "3.8"
strict = true
disallow_untyped_defs = true
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
show_error_codes = true
[tool.black]
line-length = 120
target-version = ['py38']
[tool.ruff]
target-version = "py38"
extend-exclude = ["docs"]
line-length = 120
[tool.ruff.lint]
select = [
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"W",
"BLE",
"EXE",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"YTT",
"UP",
"FA100",
"FA102"
]
extend-fixable = ['UP']
ignore = [
'PLR0911',
'INP001',
'N806',
'N802',
'N803',
'E501',
'BLE001',
'RUF002',
'S301',
'S314',
'S101',
'N815',
'S104',
'C901',
'ISC003',
'PLR0913',
'RUF001',
'SIM108',
'TCH003',
'RUF003',
'RET504',
'TCH001',
'TRY300',
'TRY003',
'TRY201',
'TRY301',
'PLR0912',
'PLR0915',
'PLR2004',
'PGH003',
]