-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpyproject.toml
123 lines (110 loc) · 2.6 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "bitcart"
version = "1.17.0.0"
description = "Bitcart coins support library"
readme = "README.md"
license = "MIT"
authors = [{ name = "MrNaif2018", email = "[email protected]" }]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = ["electrum", "daemon", "bitcart", "bitcartcc"]
dependencies = ["jsonrpcclient", "aiohttp", "universalasync"]
[project.optional-dependencies]
proxy = ["aiohttp_socks"]
[project.urls]
Homepage = "https://github.com/bitcart/bitcart-sdk"
Source = "https://github.com/bitcart/bitcart-sdk"
Changelog = "https://github.com/bitcart/bitcart-sdk/blob/master/CHANGELOG.md"
[dependency-groups]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-asyncio",
"pytest-mock",
"ruff",
"mypy",
]
docs = [
"commonmark",
"mock",
"pillow",
"recommonmark",
"sphinx",
"sphinx-rtd-theme",
]
all = [{ include-group = 'dev' }, { include-group = 'docs' }]
[tool.uv]
default-groups = ["dev"]
[tool.hatch.build.targets.wheel]
packages = ["bitcart"]
[tool.ruff]
target-version = "py311"
line-length = 127
[tool.ruff.lint]
select = [
"F",
"E",
"I",
"UP",
"YTT",
"B",
"T10",
"C",
"SIM",
"RUF100",
"RET",
"A",
"S",
"ASYNC",
]
ignore = ["RET502", "RET503", "S104", "S507", "ASYNC110"]
mccabe = { max-complexity = 12 }
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S"]
"examples/*" = ["SIM"]
[tool.mypy]
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
no_implicit_optional = true
strict_optional = true
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["--cov=bitcart", "--cov-report", "term-missing"]
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
omit = [
"*__init__.py",
"tests/*",
"venv/*",
"env/*",
"setup.py",
"bitcart/providers/jsonrpcrequests.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError()",
"if TYPE_CHECKING:",
]