-
-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathpyproject.toml
More file actions
300 lines (285 loc) · 6.92 KB
/
pyproject.toml
File metadata and controls
300 lines (285 loc) · 6.92 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "bip_utils"
dynamic = ["version", "dependencies", "optional-dependencies"]
authors = [
{name = "Emanuele Bellocchia", email = "ebellocchia@gmail.com"}
]
maintainers = [
{name = "Emanuele Bellocchia", email = "ebellocchia@gmail.com"}
]
description = "Generation of mnemonics, seeds, private/public keys and addresses for different types of cryptocurrencies"
readme = "README.md"
license = "MIT"
license-files = [
"LICENSE",
]
requires-python = ">=3.7"
keywords = [
"python",
"cryptography",
"ecdsa",
"ed25519",
"ed25519-blake2b",
"nist256p1",
"secp256k1",
"sr25519",
"wallet",
"hd-wallet",
"slip10",
"slip32",
"bip38",
"bip39",
"bip39-substrate",
"bip32",
"bip44",
"bip49",
"bip84",
"bip86",
"bip173",
"bip350",
"brainwallet",
"base58",
"ss58",
"bech32",
"bech32m",
"segwit",
"electrum",
"substrate",
"taproot",
"daedalus",
"byron",
"shelley",
"akash",
"algorand",
"aptos",
"arbitrum",
"atom",
"avalanche",
"avax",
"axelar",
"band protocol",
"binance chain",
"binance smart chain",
"bitcoin",
"bitcoin cash",
"bitcoinsv",
"bnb",
"cardano",
"cardano-byron",
"cardano-shelley",
"celestia",
"celo",
"certik",
"cosmos",
"dash",
"digibyte",
"dogecoin",
"dydx",
"ecash",
"elrond",
"eos",
"ethereum",
"ethereum classic",
"fantom opera",
"fetch.ai",
"filecoin",
"harmony one",
"huobi chain",
"icon",
"injective",
"iris",
"irisnet",
"kava",
"litecoin",
"matic",
"mavryk",
"metis",
"monero",
"multiversx",
"nano",
"near",
"near protocol",
"neo",
"neutron",
"nimiq",
"okex chain",
"ontology",
"optimism",
"osmosis",
"pi network",
"polygon",
"ripple",
"secret",
"solana",
"stellar",
"substrate",
"sui",
"terra",
"tezos",
"theta",
"ton",
"tron",
"vechain",
"verge",
"zcash",
"zilliqa",
"acala",
"bifrost",
"chainx",
"edgeware",
"karura",
"kusama",
"moonbeam",
"moonriver",
"phala",
"plasm",
"sora",
"stafi",
"polkadot",
]
classifiers = [
"Programming Language :: Python :: 3.7",
"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 :: 3.13",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
]
[project.urls]
Homepage = "https://github.com/ebellocchia/bip_utils"
Changelog = "https://github.com/ebellocchia/bip_utils/blob/master/CHANGELOG.md"
Repository = "https://github.com/ebellocchia/bip_utils"
Download = "https://github.com/ebellocchia/bip_utils/archive/v{version}.tar.gz"
Documentation = "https://bip-utils.readthedocs.io"
[tool.setuptools]
packages = {find = {exclude = ["benchmark*", "build*", "dist*", "docs*", "examples*", "readme*", "venv*", "tests*"]}}
[tool.setuptools.package-data]
bip_utils = [
"bip/bip39/wordlist/*.txt",
"electrum/mnemonic_v1/wordlist/*.txt",
"monero/mnemonic_legacy/wordlist/*.txt",
]
[tool.setuptools.dynamic]
version = {attr = "bip_utils._version.__version__"}
dependencies = {file = ["requirements.txt"]}
optional-dependencies.develop = {file = ["requirements-dev.txt"]}
#
# Tools configuration
#
[tool.ruff]
target-version = "py37"
line-length = 120
exclude = [
".github",
".eggs",
".egg-info",
".idea",
".mypy_cache",
".tox",
"benchmark",
"build",
"dist",
"docs",
"examples",
"readme",
"tests",
"my_tests",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # pyflakes
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"C90", # mccabe complexity
"PL", # pylint
]
ignore = [
"N802", # Function name should be lowercase
"E231", # Missing whitespace after ':'
"F821", # Undefined name (Literal import for Python 3.7 compatibility)
"UP006", # Use `type` instead of `Type` for type annotation (Python <3.9 compatibility)
"UP007", # Use `X | Y` for type annotations (Python <3.10 compatibility)
"UP037", # Remove quotes from type annotation (Literal import for Python 3.7 compatibility)
"UP045", # Use `X | None` for type annotations (Python <3.10 compatibility)
# pydocstyle
"D104", # Missing docstring in public package
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D406", # Section name should end with a newline
"D407", # Missing dashed underline after section
"D413", # Missing blank line after last section
"D415", # First line should end with a period, question mark, or exclamation point
"D417", # Missing argument description in the docstring: **kwargs
# pylint
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "D104"] # Imported but unused, missing docstring
"**/P2*.py" = ["N999"] # Invalid module name
"**/BIP*.py" = ["N999"] # Invalid module name
"**/typing.py" = ["F401", "F821"] # Literal import for Python 3.7 compatibility
"**/bip32_key_data.py" = ["PLW1641"] # Object does not implement `__hash__` method
"**/data_bytes.py" = ["PLW1641"] # Object does not implement `__hash__` method
[tool.ruff.lint.isort]
known-first-party = []
lines-after-imports = 2
combine-as-imports = false
force-single-line = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.mypy]
python_version = "3.7"
ignore_missing_imports = true
follow_imports = "skip"
exclude = [
"\\.github",
"\\.eggs",
"\\.egg-info",
"\\.idea",
"\\.ruff_cache",
"\\.tox",
"benchmark",
"build",
"dist",
"docs",
"examples",
"readme",
"my_tests",
"tests",
"venv",
]
[tool.coverage.run]
omit = [
"bip_utils/ecc/ed25519/lib/ed25519_lib.py",
".tox/*",
"benchmark/*",
"tests/*",
"venv/*",
"my_tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abstract",
"@overload",
]