Слияние кода завершено, страница обновится автоматически
[tox]
envlist = flake8, imports, tests, pylint
skipsdist = true
[testenv:imports]
# This must run separately from the other tests since it checks importing
# python modules with a clean python search path. The only directory allowed in
# the search path is the lib directory.
setenv =
PYTHONPATH = {toxinidir}/lib
sitepackages = True
deps =
pytest==2.9
changedir = {toxinidir}/tests
commands =
py.test -v -rxs check_imports.py
[testenv:tests]
passenv = *
# Using random hash seed expose bad tests assuming order of unorder things.
# Disabaled for now to make the build pass.
# TODO: remove this option after the failing tests are fixed.
setenv =
PYTHONHASHSEED = 0
sitepackages = True
deps =
nose==1.3.7
yappi==0.93
whitelist_externals = make
commands =
make -C tests check
[testenv:pylint]
setenv =
PYTHONPATH = vdsm:lib
sitepackages = True
deps =
pylint==1.6.4
commands =
pylint --errors-only \
vdsm/API.py \
vdsm/clientIF.py \
vdsm/sitecustomize.py \
vdsm/hooking.py \
vdsm/vdsmd.py \
vdsm/storage \
vdsm/virt \
lib/vdsm \
lib/vdsmclient \
lib/yajsonrpc
[testenv:flake8]
deps =
flake8==3.0.4
commands=
flake8 --statistics {posargs} \
. \
build-aux/vercmp \
contrib/logdb \
contrib/logstat \
contrib/profile-stats \
init/daemonAdapter \
vdsm/get-conf-item \
vdsm/set-conf-item \
vdsm/storage/curl-img-wrap \
vdsm/storage/fc-scan \
vdsm/vdsm-restore-net-config
[flake8]
# Ignore errors in current code to make the build pass
# 31 E402 module level import not at top of file
# 25 E731 do not assign a lambda expression, use a def
# TODO: fix the code and eliminate these ignores
ignore = E402, E731
show_source = True
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )