forked from andelf/tronpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (33 loc) · 876 Bytes
/
tox.ini
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
[tox]
isolated_build = True
envlist =
lint
py{36,37,38}
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[travis]
python =
3.6: lint, py36
3.7: py37
3.8: py38
[flake8]
max-line-length=120
ignore=E203,W503
[testenv]
whitelist_externals = poetry
commands =
poetry install -v
py{36,37,38}: python -m pytest tests
[testenv:lint]
basepython=python3
extras=linter
whitelist_externals = poetry
commands =
poetry install -v
black --check {toxinidir}/tronpy/ {toxinidir}/tests/
flake8 {toxinidir}/tronpy/ {toxinidir}/tests/
isort --check-only --diff --recursive {toxinidir}/tronpy {toxinidir}/tests
mypy --disallow-untyped-defs tronpy