代码拉取完成,页面将自动刷新
[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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。