forked from trim21/transmission-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (99 loc) · 2.64 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "transmission-rpc"
version = "3.3.0"
description = "Python module that implements the Transmission bittorent client JSON-RPC protocol"
authors = ["Trim21 <[email protected]>"]
readme = 'README.md'
repository = 'https://github.com/Trim21/transmission-rpc'
license = 'MIT'
packages = [{ include = 'transmission_rpc' }]
keywords = ['transmission', 'rpc']
classifiers = [
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Topic :: Internet',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
[tool.poetry.dependencies]
python = "^3.7"
# dependencies
requests = "^2.23.0"
typing_extensions = ">=3.7.4.2,<4.0.2.0"
# build document
sphinx = { version = "==4.3.2", optional = true }
sphinx-rtd-theme = { version = "==1.0.0", optional = true }
[tool.poetry.extras]
docs = ['sphinx', 'sphinx-rtd-theme']
[tool.poetry.dev-dependencies]
yarl = "==1.7.2"
# tests
pytest = "==6.2.5"
coverage = "==6.2"
# linter and formatter
pre-commit = { version = "==2.16.0", markers = "implementation_name != 'pypy'" }
mypy = { version = "==0.931", markers = "implementation_name != 'pypy'" }
flake8 = "==4.0.1"
flake8-comprehensions = "==3.8.0"
flake8-bugbear = "==22.1.11"
flake8-mutable = "1.2.0"
pytest-github-actions-annotate-failures = "==0.1.6"
flake8-pytest-style = "==1.6.0"
pylint = "==2.12.2"
sphinx-autobuild = "2021.3.14"
# stubs
types-requests = "==2.27.7"
pytz = "^2021.1"
[tool.isort]
default_section = 'THIRDPARTY'
indent = ' '
known_first_party = 'transmission_rpc'
length_sort = true
line_length = 88
multi_line_output = 3
no_lines_before = 'LOCALFOLDER'
use_parentheses = true
include_trailing_comma = true
[tool.pytest.ini_options]
addopts = '-rav -Werror'
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
show_error_codes = true
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 88
[tool.pylint.messages_control]
disable = [
'C0114',
'C0116',
'C0201',
'C0301',
'R0801',
'R0401',
'C0103',
'C0412',
'R0913',
'R0904',
'R0901',
'C0115',
'C0115',
'R0912',
'R0903',
'R0915',
'R0914',
'R0902',
'R1710',
'C0302',
]