bed3b55540
We can use the default value by fixing the only one error. test/test_pyeclib_api.py:111:80: E501 line too long (83 > 79 characters) Change-Id: Idcdd6f643330b76328b5cd28c32900eeceacafb8
42 lines
1.1 KiB
INI
42 lines
1.1 KiB
INI
[tox]
|
|
envlist = py{27,35,36,37,38,39,310}-compilelibs,pep8,docs
|
|
|
|
[testenv]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands=
|
|
pytest -v test/
|
|
setenv = LIBERASURECODE_DIR={envdir}/liberasurecode
|
|
NASM_DIR={envdir}/nasm
|
|
ISAL_DIR={envdir}/isa-l
|
|
JERASURE_DIR={envdir}/jerasure
|
|
GFCOMPLETE_DIR={envdir}/gf-complete
|
|
passenv = LIBERASURECODE_REF
|
|
allowlist_externals =
|
|
compilelibs: {toxinidir}/tools/pip-install-with-liberasurecode.sh
|
|
install_command =
|
|
compilelibs: {toxinidir}/tools/pip-install-with-liberasurecode.sh {opts} {packages}
|
|
!compilelibs: pip install {opts} {packages}
|
|
|
|
[testenv:pep8]
|
|
skip_install = True
|
|
deps=
|
|
hacking
|
|
commands=
|
|
flake8 pyeclib/ setup.py test/
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
# H101: Use TODO(NAME)
|
|
# H404: multi line docstring should start without a leading new line
|
|
# H405: multi line docstring summary not separated with an empty line
|
|
# W504: line break after binary operator
|
|
ignore = H101,H404,H405,W504
|