-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (66 loc) · 1.59 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
[build-system]
requires = ["poetry>=1.0.9,<2.0"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "hypercore-crypto"
version = "0.0.1a4"
description = "Cryptography primitives for Hypercore"
authors = ["decentral1se <[email protected]>"]
maintainers = ["decentral1se <[email protected]>"]
license = "GPLv3"
readme = "README.md"
repository = "https://github.com/hyperpy/hypercore-crypto"
keywords = ["hypercore", "hypercore-protocol"]
[tool.poetry.dependencies]
python = "^3.6"
pysodium = "^0.7.5"
merkle-tree-stream = "^0.0.1-alpha.4"
[tool.poetry.dev-dependencies]
black = "^19.10b0"
flake8 = "^3.8.3"
isort = "^5.0.2"
[tool.black]
line-length = 80
target-version = ["py38"]
include = '\.pyi?$'
[tool.isort]
include_trailing_comma = true
known_first_party = "hypercore_crypto"
known_third_party = "pytest"
line_length = 80
multi_line_output = 3
skip = ".venv,.tox"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
{py36,py37,py38}
lint
sort
format
type
skip_missing_interpreters = True
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
pytest-mock
commands = pytest test/ --cov={toxinidir}/hypercore_crypto/ --no-cov-on-fail {posargs}
[testenv:lint]
skipdist = True
deps = flake8
commands = flake8 {posargs:--max-line-length 80} hypercore_crypto/ test/
[testenv:sort]
skipdist = True
deps = isort
commands = isort {posargs:-c} hypercore_crypto/ test/
[testenv:format]
skipdist = True
deps = black
commands = black {posargs:--check} hypercore_crypto/ test/
[testenv:type]
skipdist = True
deps = mypy
commands = mypy {posargs:--ignore-missing-imports} hypercore_crypto/ test/
"""