forked from crypto-org-chain/chainlibpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (88 loc) · 2.34 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "chainlibpy"
version = "1.0.0" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
authors = ["linfeng <[email protected]>"]
description = "Tools for Crypto.com wallet management and offline transaction signing"
repository = "https://github.com/crypto-com/chainlibpy"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
keywords = ["blockchain", "crypto.com", "cryptocurrency"]
packages = [
{include = "chainlibpy"},
]
include = ["chainlibpy/py.typed"]
[tool.poetry.urls]
"Changelog" = "https://github.com/crypto-com/chainlibpy/blob/master/CHANGELOG.md"
[tool.poetry.dependencies]
python = "^3.6"
ecdsa = ">=0.14.0, <0.17.0"
bech32 = "^1.1.0"
mnemonic = ">=0.19, <0.20"
hdwallets = "^0.1.0"
typing-extensions = { version = "^3.7.4", python = "<3.8" }
[tool.poetry.dev-dependencies]
# Tests
pytest = "*"
pytest-randomly = "*"
pytest-cov = "*"
# Linting
isort = "*"
black = { version = "*", allow-prereleases = true }
flake8 = "*"
flake8-bugbear = "*"
flake8-builtins = "*"
flake8-comprehensions = "*"
mypy = "*"
docformatter = "*"
mdformat = "*"
mdformat-black = "*"
mdformat-toc = "*"
# Tools
pre-commit = "*"
bump2version = "*"
[tool.black]
line-length = 99
target_version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
)/
| tester.py # also separately exclude a file named tester.py in
# the root of the project
)
'''
[tool.isort]
skip = ["venv"]
# Force imports to be sorted by module, independent of import type
force_sort_within_sections = true
# Group first party and local folder imports together
no_lines_before = ["LOCALFOLDER"]
# Configure isort to work without access to site-packages
known_first_party = ["chainlibpy", "tests"]
# Settings for Black compatibility
profile = "black"
line_length = 99
[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config"
xfail_strict = true