"Fossies" - the Fresh Open Source Software Archive

Member "keystone-18.0.0/tox.ini" (14 Oct 2020, 5833 Bytes) of package /linux/misc/openstack/keystone-18.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": 17.0.0_vs_18.0.0.

    1 [tox]
    2 minversion = 3.2.0
    3 skipsdist = True
    4 envlist = py37,pep8,api-ref,docs,genconfig,genpolicy,releasenotes,protection
    5 
    6 [testenv]
    7 usedevelop = True
    8 basepython = python3
    9 setenv = VIRTUAL_ENV={envdir}
   10 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   11        -r{toxinidir}/test-requirements.txt
   12        -r{toxinidir}/requirements.txt
   13        .[ldap,memcache,mongodb]
   14 commands =
   15   find keystone -type f -name "*.pyc" -delete
   16   stestr run {posargs}
   17 whitelist_externals =
   18   bash
   19   find
   20 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
   21 
   22 [testenv:api-ref]
   23 deps = -r{toxinidir}/doc/requirements.txt
   24 commands =
   25   bash -c "rm -rf api-ref/build"
   26   sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
   27 
   28 [testenv:pep8]
   29 deps =
   30      .[bandit]
   31      {[testenv]deps}
   32 commands =
   33   flake8 --ignore=D100,D101,D102,D103,D104,E305,E402,W503,W504,W605
   34   # Run bash8 during pep8 runs to ensure violations are caught by
   35   # the check and gate queues
   36   bashate devstack/plugin.sh
   37   # Run security linter
   38   bandit -r keystone -x 'keystone/tests/*'
   39 
   40 [testenv:fast8]
   41 envdir = {toxworkdir}/pep8
   42 commands =
   43   {toxinidir}/tools/fast8.sh
   44 passenv = FAST8_NUM_COMMITS
   45 
   46 [testenv:bandit]
   47 # NOTE(browne): This is required for the integration test job of the bandit
   48 # project. Please do not remove.
   49 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   50        -r{toxinidir}/requirements.txt
   51        .[bandit]
   52 commands = bandit -r keystone -x 'keystone/tests/*'
   53 
   54 [testenv:cover]
   55 # Also do not run test_coverage_ext tests while gathering coverage as those
   56 # tests conflict with coverage.
   57 setenv =
   58   {[testenv]setenv}
   59   PYTHON=coverage run --source keystone --parallel-mode
   60 commands =
   61   find keystone -type f -name "*.pyc" -delete
   62   stestr run {posargs}
   63   coverage combine
   64   coverage html -d cover
   65   coverage xml -o cover/coverage.xml
   66 
   67 [testenv:patch_cover]
   68 commands =
   69   bash tools/cover.sh
   70 
   71 [testenv:venv]
   72 commands = {posargs}
   73 
   74 [testenv:debug]
   75 commands =
   76   find keystone -type f -name "*.pyc" -delete
   77   oslo_debug_helper {posargs}
   78 passenv =
   79     KSTEST_ADMIN_URL
   80     KSTEST_ADMIN_USERNAME
   81     KSTEST_ADMIN_PASSWORD
   82     KSTEST_ADMIN_DOMAIN_ID
   83     KSTEST_PUBLIC_URL
   84     KSTEST_USER_USERNAME
   85     KSTEST_USER_PASSWORD
   86     KSTEST_USER_DOMAIN_ID
   87     KSTEST_PROJECT_ID
   88 
   89 [testenv:functional]
   90 deps = -r{toxinidir}/test-requirements.txt
   91 setenv = OS_TEST_PATH=./keystone/tests/functional
   92 commands =
   93   find keystone -type f -name "*.pyc" -delete
   94   stestr run {posargs}
   95   stestr slowest
   96 passenv =
   97     KSTEST_ADMIN_URL
   98     KSTEST_ADMIN_USERNAME
   99     KSTEST_ADMIN_PASSWORD
  100     KSTEST_ADMIN_DOMAIN_ID
  101     KSTEST_PUBLIC_URL
  102     KSTEST_USER_USERNAME
  103     KSTEST_USER_PASSWORD
  104     KSTEST_USER_DOMAIN_ID
  105     KSTEST_PROJECT_ID
  106 
  107 [flake8]
  108 filename= *.py,keystone-manage
  109 show-source = true
  110 enable-extensions = H203,H904
  111 
  112 # D100: Missing docstring in public module
  113 # D101: Missing docstring in public class
  114 # D102: Missing docstring in public method
  115 # D103: Missing docstring in public function
  116 # D104: Missing docstring in public package
  117 # D203: 1 blank line required before class docstring (deprecated in pep257)
  118 # TODO(wxy): Fix the pep8 issue.
  119 # E402: module level import not at top of file
  120 # W503: line break before binary operator
  121 # W504 line break after binary operator
  122 ignore = D100,D101,D102,D103,D104,D203,E402,W503,W504
  123 
  124 exclude=.venv,.git,.tox,build,dist,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot
  125 max-complexity=24
  126 
  127 [testenv:docs]
  128 deps =
  129   -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  130   -r{toxinidir}/doc/requirements.txt
  131   .[ldap,memcache,mongodb]
  132 commands=
  133     bash -c "rm -rf doc/build"
  134     bash -c "rm -rf doc/source/api"
  135     sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
  136 
  137 # FIXME(gyee): we need to pre-create the doc/build/pdf/_static directory as a
  138 # workaround because sphinx_feature_classification.support_matrix extension
  139 # is operating under the assumption that the _static directory already exist
  140 # and trying to copy support-matrix.css into it. We need to remove
  141 # the workaround after this patch has merged:
  142 # https://review.opendev.org/#/c/679860
  143 [testenv:pdf-docs]
  144 envdir = {toxworkdir}/docs
  145 deps = {[testenv:docs]deps}
  146 whitelist_externals =
  147   make
  148   mkdir
  149   rm
  150 commands =
  151   rm -rf doc/build/pdf
  152   mkdir -p doc/build/pdf/_static
  153   sphinx-build -W -b latex doc/source doc/build/pdf
  154   make -C doc/build/pdf
  155 
  156 [testenv:releasenotes]
  157 deps = -r{toxinidir}/doc/requirements.txt
  158 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  159 
  160 [testenv:genconfig]
  161 commands = oslo-config-generator --config-file=config-generator/keystone.conf
  162 
  163 [testenv:genpolicy]
  164 commands = oslopolicy-sample-generator --config-file config-generator/keystone-policy-generator.conf
  165 
  166 [hacking]
  167 import_exceptions =
  168   keystone.i18n
  169   six.moves
  170 
  171 [flake8:local-plugins]
  172 extension =
  173     K001 = checks:CheckForMutableDefaultArgs
  174     K002 = checks:block_comments_begin_with_a_space
  175     K005 = checks:CheckForTranslationIssues
  176     K008 = checks:dict_constructor_with_sequence_copy
  177 paths = ./keystone/tests/hacking
  178 
  179 [testenv:bindep]
  180 # Do not install any requirements. We want this to be fast and work even if
  181 # system dependencies are missing, since it's used to tell you what system
  182 # dependencies are missing! This also means that bindep must be installed
  183 # separately, outside of the requirements files.
  184 deps = bindep
  185 commands = bindep test
  186 
  187 [testenv:lower-constraints]
  188 deps =
  189   -c{toxinidir}/lower-constraints.txt
  190   -r{toxinidir}/test-requirements.txt
  191   .[ldap,memcache,mongodb]
  192 
  193 [testenv:protection]
  194 commands =
  195   find keystone -type f -name "*.pyc" -delete
  196   stestr run --test-path=./keystone/tests/protection {posargs}