-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
106 lines (99 loc) · 2.78 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
[build-system]
requires = ["setuptools>=61", "cffi>=1.3.0", "requests"]
build-backend = "setuptools.build_meta"
[project]
name = "electrumsv_secp256k1"
version = "19.0.0"
authors = [
{ name="rt121212121", email="[email protected]" },
]
description = "Cross-platform Python CFFI bindings for libsecp256k1"
license = { file="LICENSE-MIT" }
keywords = ["secp256k1", "crypto", "elliptic curves", "bitcoin", "ethereum", "cryptocurrency"]
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"asn1crypto",
"cffi>=1.3.0"
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'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',
'Topic :: Software Development :: Libraries',
'Topic :: Security :: Cryptography',
]
[project.urls]
"Homepage" = "https://github.com/electrumsv/electrumsv-secp256k1"
"Bug Tracker" = "https://github.com/electrumsv/electrumsv-secp256k1/issues"
"Documentation" = "https://ofek.dev/coincurve/"
"Issues" = "https://github.com/electrumsv/electrumsv-secp256k1/issues"
"Source" = "https://github.com/electrumsv/electrumsv-secp256k1"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| _cffi_build
| build
| dist
)/
|
(
setup\.py$
| _libsecp256k1\.py$
)
'''
[tool.ruff]
target-version = "py38"
line-length = 120
lint.select = ["A", "B", "C", "E", "F", "I", "M", "N", "Q", "RUF", "S", "T", "U", "W", "YTT"]
lint.ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Ignore McCabe complexity
"C901",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105", "S106", "S107",
]
lint.unfixable = [
# Don't touch unused imports
"F401",
]
extend-exclude = [
"_cffi_build/compose_cffi_files.py",
]
[tool.ruff.lint.isort]
known-first-party = ["electrumsv_secp256k1"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.per-file-ignores]
"setup.py" = ["B", "C", "I", "N", "U"]
# Tests can use assertions
"tests/*" = ["S101"]
"tests/**/*" = ["S101"]