2019-09-25 02:55:16 +03:00
|
|
|
[tox]
|
2019-11-05 00:57:42 +03:00
|
|
|
envlist = config_default, config_custom, flake8
|
2019-10-30 22:51:32 +03:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython = python3.7
|
|
|
|
deps = -rmoziris/test/requirements/tests.txt
|
|
|
|
setenv =
|
|
|
|
DISPLAY=:99.0
|
|
|
|
XAUTH=$HOME/.Xauthority
|
|
|
|
IRIS_CODE_ROOT=/iris
|
|
|
|
PYTHONPATH=/iris
|
|
|
|
|
2019-11-05 00:57:42 +03:00
|
|
|
[testenv:config_default]
|
|
|
|
commands = pytest moziris/test/unit/configuration/test_iris_config_default.py -vs
|
2019-10-30 22:51:32 +03:00
|
|
|
|
2019-11-05 00:57:42 +03:00
|
|
|
[testenv:config_custom]
|
|
|
|
commands = pytest moziris/test/unit/configuration/test_iris_config_custom.py -vs
|
2019-09-25 02:55:16 +03:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython = python3.7
|
2019-10-30 22:51:32 +03:00
|
|
|
deps = -rmoziris/test/requirements/flake8.txt
|
2019-09-25 02:55:16 +03:00
|
|
|
commands = flake8 --count
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length = 120
|
|
|
|
# W503 = no line break before binary operator
|
|
|
|
# E203 = no whitespace before ':'
|
|
|
|
# E722 = do not use bare 'except'
|
|
|
|
# F401 = PACKAGE_NAME imported but unused
|
|
|
|
# F403 = star import used; unable to detect undefined names
|
|
|
|
# F405 [module] may be undefined, or defined from star imports
|
|
|
|
ignore = W503, E203, E722, F401, F403, F405
|