"Fossies" - the Fresh Open Source Software Archive

Member "ec2-api-12.0.0/tox.ini" (14 Apr 2021, 2009 Bytes) of package /linux/misc/openstack/ec2-api-12.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 last Fossies "Diffs" side-by-side code changes report for "tox.ini": 12.0.0_vs_13.0.0.

    1 [tox]
    2 minversion = 3.1
    3 envlist = pep8,py38,docs,api-ref
    4 skipsdist = True
    5 ignore_basepython_conflict = True
    6 
    7 [testenv]
    8 basepython = python3
    9 usedevelop = True
   10 setenv =
   11   PYTHONDONTWRITEBYTECODE=1
   12 deps =
   13   -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   14   -r{toxinidir}/test-requirements.txt
   15 commands =
   16   stestr run {posargs}
   17   stestr slowest
   18 
   19 [testenv:pep8]
   20 commands =
   21   flake8 {posargs}
   22 
   23 [testenv:genconfig]
   24 commands = oslo-config-generator --config-file=etc/ec2api/ec2api-config-generator.conf
   25 
   26 [testenv:venv]
   27 commands = {posargs}
   28 
   29 [testenv:docs]
   30 # This environment is called from CI scripts to test and publish
   31 # the API Ref and Docs to docs.openstack.org.
   32 whitelist_externals = rm
   33 deps =
   34   -r{toxinidir}/doc/requirements.txt
   35 commands =
   36   rm -rf doc/build
   37   sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
   38 
   39 [testenv:api-ref]
   40 # This environment is called from CI scripts to test and publish
   41 # the API Ref to docs.openstack.org.
   42 whitelist_externals = rm
   43 deps = {[testenv:docs]deps}
   44 commands =
   45   rm -rf api-ref/build
   46   sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
   47 
   48 [flake8]
   49 # E712 is ignored on purpose, since it is normal to use 'column == true'
   50 #      in sqlalchemy.
   51 # TODO Hacking 0.6 checks to fix
   52 # H102  Apache 2.0 license header not found
   53 # W503 line break before binary operator
   54 # W504 line break after binary operator
   55 ignore = E121,E122,E123,E124,E126,E127,E128,E711,E712,H102,H303,H404,F403,F811,F841,W503,W504
   56 # H106: Don't put vim configuration in source files
   57 # H203: Use assertIs(Not)None to check for None
   58 enable-extensions=H106,H203
   59 exclude =  .venv,.git,.tox,dist,envname,*lib/python*,*egg,build,tools
   60 max-complexity=25
   61 
   62 [flake8:local-plugins]
   63 extension =
   64     N537 = checks:no_translate_logs
   65 paths = ./ec2api/hacking
   66 
   67 [testenv:lower-constraints]
   68 deps =
   69   -c{toxinidir}/lower-constraints.txt
   70   -r{toxinidir}/test-requirements.txt
   71   -r{toxinidir}/doc/requirements.txt