This commit is contained in:
parent
da82547264
commit
afeb033e89
@ -43,7 +43,6 @@ hrpc = "hrpc.hrpc:main"
|
|||||||
legacy_tox_ini = """
|
legacy_tox_ini = """
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
{py36,py37,py38}
|
|
||||||
lint
|
lint
|
||||||
sort
|
sort
|
||||||
format
|
format
|
||||||
@ -52,29 +51,24 @@ skip_missing_interpreters = True
|
|||||||
isolated_build = True
|
isolated_build = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
|
||||||
pytest
|
|
||||||
pytest-cov
|
|
||||||
pytest-mock
|
|
||||||
commands = pytest test/ --cov={toxinidir}/hrpc/ --no-cov-on-fail {posargs}
|
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
skipdist = True
|
skipdist = True
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8 {posargs:--max-line-length 80} hrpc/ test/
|
commands = flake8 {posargs:--max-line-length 80} hrpc/
|
||||||
|
|
||||||
[testenv:sort]
|
[testenv:sort]
|
||||||
skipdist = True
|
skipdist = True
|
||||||
deps = isort
|
deps = isort
|
||||||
commands = isort {posargs:-c} hrpc/ test/
|
commands = isort {posargs:-c} hrpc/
|
||||||
|
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
skipdist = True
|
skipdist = True
|
||||||
deps = black
|
deps = black
|
||||||
commands = black {posargs:--check} hrpc/ test/
|
commands = black {posargs:--check} hrpc/
|
||||||
|
|
||||||
[testenv:type]
|
[testenv:type]
|
||||||
skipdist = True
|
skipdist = True
|
||||||
deps = mypy
|
deps = mypy
|
||||||
commands = mypy {posargs:--ignore-missing-imports} hrpc/ test/
|
commands = mypy {posargs:--ignore-missing-imports} hrpc/
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user