"Fossies" - the Fresh Open Source Software Archive

Member "cloudkitty-13.0.0/tox.ini" (14 Oct 2020, 2876 Bytes) of package /linux/misc/openstack/cloudkitty-13.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": 12.1.0_vs_13.0.0.

    1 [tox]
    2 minversion = 3.1.0
    3 skipsdist = True
    4 envlist = py36,py38,pep8
    5 ignore_basepython_conflict = True
    6 
    7 [testenv]
    8 basepython = python3
    9 whitelist_externals = rm
   10 setenv = VIRTUAL_ENV={envdir}
   11          PYTHONWARNINGS=default::DeprecationWarning
   12 usedevelop = True
   13 install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria} {opts} {packages}
   14 
   15 deps = -r{toxinidir}/requirements.txt
   16        -r{toxinidir}/test-requirements.txt
   17 commands =
   18   /usr/bin/find . -type f -name "*.py[co]" -delete
   19   rm -f .testrepository/times.dbm
   20   stestr run {posargs}
   21 
   22 [testenv:debug]
   23 commands = oslo_debug_helper {posargs}
   24 
   25 [testenv:pep8]
   26 commands =
   27     flake8 {posargs} cloudkitty
   28     doc8 {posargs}
   29 
   30 [testenv:bandit]
   31 deps = -r{toxinidir}/test-requirements.txt
   32 commands = bandit -r cloudkitty -n5 -x cloudkitty/tests/* -ll
   33 
   34 [testenv:cover]
   35 setenv =
   36     VIRTUAL_ENV={envdir}
   37     PYTHON=coverage run --source cloudkitty --parallel-mode
   38 commands =
   39     stestr run {posargs}
   40     coverage combine
   41     coverage html -d cover
   42     coverage xml -o cover/coverage.xml
   43     coverage report
   44 
   45 [testenv:genconfig]
   46 commands =
   47   oslo-config-generator --config-file etc/oslo-config-generator/cloudkitty.conf
   48 
   49 [testenv:genpolicy]
   50 commands = oslopolicy-sample-generator --config-file=etc/oslo-policy-generator/cloudkitty.conf
   51 
   52 [testenv:docs]
   53 commands = sphinx-build -W --keep-going -b html doc/source doc/build/html
   54 
   55 # TODO(smcginnis) Temporarily disabling this as it fails. Error is that
   56 # something is too large, likely from pulling in one of the conf sample files
   57 # [testenv:pdf-docs]
   58 # envdir = {toxworkdir}/docs
   59 # whitelist_externals =
   60 #   make
   61 # commands =
   62 #   sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
   63 #   make -C doc/build/pdf
   64 
   65 [testenv:venv]
   66 commands = {posargs}
   67 
   68 [flake8]
   69 filename = *.py,app.wsgi
   70 exclude = .git,.venv,.tox,dist,doc,*egg,build,.ropeproject,releasenotes
   71 
   72 [doc8]
   73 ignore-path = .venv,.git,.tox,.tmp,*cloudkitty/locale*,*lib/python*,cloudkitty.egg*,doc/build,releasenotes/*
   74 
   75 [hacking]
   76 import_exceptions = cloudkitty.i18n
   77 
   78 [flake8:local-plugins]
   79 extension =
   80     C310 = checks:CheckLoggingFormatArgs
   81     C311 = checks:validate_assertIsNone
   82     C312 = checks:validate_assertTrue
   83     C313 = checks:no_translate_logs
   84     C314 = checks:CheckForStrUnicodeExc
   85     C315 = checks:CheckForTransAdd
   86     C317 = checks:check_oslo_namespace_imports
   87     C318 = checks:dict_constructor_with_list_copy
   88     C319 = checks:no_xrange
   89     C320 = checks:no_log_warn_check
   90     C321 = checks:check_explicit_underscore_import
   91 paths = ./cloudkitty/hacking
   92 
   93 [testenv:releasenotes]
   94 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
   95 
   96 [testenv:lower-constraints]
   97 deps =
   98   -c{toxinidir}/lower-constraints.txt
   99   -r{toxinidir}/test-requirements.txt
  100   -r{toxinidir}/requirements.txt