"Fossies" - the Fresh Open Source Software Archive

Member "zun-7.0.0/tox.ini" (14 Apr 2021, 5187 Bytes) of package /linux/misc/openstack/zun-7.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "tox.ini": 6.0.0_vs_7.0.0.

    1 [tox]
    2 minversion = 2.0
    3 envlist = py38,pep8,migration
    4 skipsdist = True
    5 
    6 [testenv]
    7 usedevelop = True
    8 install_command = pip install {opts} {packages}
    9 whitelist_externals = bash
   10                       find
   11                       rm
   12 setenv =
   13    VIRTUAL_ENV={envdir}
   14    PYTHONWARNINGS=default::DeprecationWarning
   15 
   16 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   17        -r{toxinidir}/requirements.txt
   18        -r{toxinidir}/test-requirements.txt
   19 
   20 commands =
   21   find . -type f -name "*.py[c|o]" -delete
   22   stestr run {posargs}
   23   stestr slowest
   24 
   25 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
   26 
   27 [testenv:pep8]
   28 basepython = python3
   29 commands =
   30   doc8 -e .rst specs/ doc/source/ CONTRIBUTING.rst HACKING.rst README.rst
   31   bash tools/flake8wrap.sh {posargs}
   32   # The following bandit tests are being skipped:
   33   # B303 - Use of insecure MD2, MD4, or MD5 hash function.
   34   # B604 - unction call with shell=True parameter identified, possible security issue.
   35   bandit -r zun -x tests -n5 -ll --skip B303,B604
   36 
   37 [testenv:venv]
   38 basepython = python3
   39 #set PYTHONHASHSEED=0 to prevent oslo_policy.sphinxext from randomly failing.
   40 setenv = PYTHONHASHSEED=0
   41 commands = {posargs}
   42 
   43 [testenv:cover]
   44 basepython = python3
   45 setenv =
   46     {[testenv]setenv}
   47     PYTHON=coverage run --source zun --parallel-mode
   48 commands =
   49     stestr run {posargs}
   50     coverage combine
   51     coverage html -d cover
   52     coverage xml -o cover/coverage.xml
   53     coverage report
   54 
   55 [testenv:docs]
   56 basepython = python3
   57 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   58        -r{toxinidir}/doc/requirements.txt
   59 commands =
   60     sphinx-build -W -d doc/build/doctrees --keep-going -b html doc/source/ doc/build/html
   61 
   62 [testenv:pdf-docs]
   63 basepython = python3
   64 envdir = {toxworkdir}/docs
   65 deps = {[testenv:docs]deps}
   66 whitelist_externals =
   67   make
   68 commands =
   69   sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
   70   make -C doc/build/pdf
   71 
   72 [testenv:debug]
   73 basepython = python3
   74 commands = oslo_debug_helper {posargs}
   75 
   76 [testenv:debug-py36]
   77 basepython = python3.6
   78 commands = oslo_debug_helper {posargs}
   79 
   80 [testenv:migration]
   81 basepython = python3
   82 setenv = {[testenv]setenv}
   83    OS_TEST_PATH=./zun/tests/migration
   84 deps = {[testenv]deps}
   85 commands =
   86   find . -type f -name "*.py[c|o]" -delete
   87   stestr run {posargs}
   88   stestr slowest
   89 
   90 [flake8]
   91 filename = *.py,app.wsgi
   92 show-source = True
   93 # [H904] Delay string interpolations at logging calls.
   94 enable-extensions = H203,H106,H904
   95 # H405 is another one that is good as a guideline, but sometimes
   96 # multiline docstrings just don't have a natural summary line.
   97 # Rejecting code for this reason is wrong.
   98 # W503 line break before binary operator
   99 # W504 line break after binary operator
  100 # E402 module level import not at top of file
  101 ignore = E123,E125,H405,W503,W504,E402
  102 builtins = _
  103 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,zun/criapi/
  104 
  105 [flake8:local-plugins]
  106 extension =
  107     Z322 = checks:no_mutable_default_args
  108     Z323 = checks:assert_equal_true_or_false
  109     Z302 = checks:assert_equal_not_none
  110     Z316 = checks:assert_true_isinstance
  111     Z338 = checks:assert_equal_in
  112     Z310 = checks:use_timeutils_utcnow
  113     Z336 = checks:dict_constructor_with_list_copy
  114     Z339 = checks:no_xrange
  115     Z352 = checks:no_log_warn
  116     Z353 = checks:no_translate_logs
  117 paths = ./zun/hacking
  118 
  119 [testenv:fast8]
  120 basepython = python3
  121 # NOTE(sheel.rana): `tox -e fast8` cab be used to run pep8 command only for
  122 # updated code instead for running whole code base.
  123 # Use same environment directory as pep8 env to save space and install time.
  124 
  125 envdir = {toxworkdir}/pep8
  126 commands =
  127   {toxinidir}/tools/fast8.sh
  128 
  129 [testenv:releasenotes]
  130 basepython = python3
  131 deps = {[testenv:docs]deps}
  132 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
  133 
  134 [testenv:genconfig]
  135 basepython = python3
  136 envdir = {toxworkdir}/venv
  137 commands =
  138     oslo-config-generator --config-file etc/zun/zun-config-generator.conf
  139 
  140 [testenv:genpolicy]
  141 basepython = python3
  142 commands =
  143     oslopolicy-sample-generator --config-file etc/zun/zun-policy-generator.conf
  144 
  145 [testenv:api-ref]
  146 basepython = python3
  147 deps = {[testenv:docs]deps}
  148 commands =
  149   rm -rf api-ref/build
  150   sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
  151 
  152 [testenv:lower-constraints]
  153 basepython = python3
  154 deps =
  155   -c{toxinidir}/lower-constraints.txt
  156   -r{toxinidir}/test-requirements.txt
  157   -r{toxinidir}/requirements.txt
  158 
  159 # This environment can be used to quickly validate that all needed system
  160 # packages required to successfully execute test targets are installed
  161 [testenv:bindep]
  162 # Do not install any requirements. We want this to be fast and work even if
  163 # system dependencies are missing, since it's used to tell you what system
  164 # dependencies are missing! This also means that bindep must be installed
  165 # separately, outside of the requirements files.
  166 deps = bindep
  167 commands = bindep test
  168 
  169 [testenv:fullstack]
  170 basepython = python3
  171 setenv = {[testenv]setenv}
  172 deps = {[testenv]deps}
  173 commands =
  174   stestr --test-path=./zun/tests/fullstack run {posargs}
  175   stestr slowest