whitebox-tempest-plugin/tox.ini
Artom Lifshitz c452206146 Update hacking for Python 3
In change I3f4216f66606fbc450a46c93de306399b7f3cd65 [1], tempest
updated their use of hacking for Python 3. Among other things, this
removed tempest.hacking.checks.factory, which we consumed. Update our
use of hacking to keep pace, and un-break the gate.

[1] I3f4216f66606fbc450a46c93de306399b7f3cd65

Change-Id: Ia4e0b3cca8cb984900b49804b964d03ea6466191
2020-05-03 11:29:45 -04:00

56 lines
2.0 KiB
INI

[tox]
minversion = 2.3.1
envlist = pep8,py{27,36,37}
skipsdist = True
skip_missing_interpreters = True
# Automatic envs (pyXX) will only use the python version appropriate to that
# env and ignore basepython inherited from [testenv] if we set
# ignore_basepython_conflict.
ignore_basepython_conflict = True
[testenv]
setenv =
VIRTUAL_ENV = {envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
whitelist_externals = *
# Until https://github.com/pixelb/crudini/issues/58 and
# https://github.com/candlepin/python-iniparse/issues/5 are on PyPi, install
# from GitHub.
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
git+https://github.com/pixelb/crudini.git#egg=crudini
git+https://github.com/candlepin/python-iniparse.git#egg=iniparse
commands =
find . -type f -name "*.pyc" -delete
stestr run {posargs}
[testenv:pep8]
commands =
flake8 {posargs}
[flake8]
ignore = H405,W504
enable-extensions = H106,H203,H904
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg
[flake8:local-plugins]
extension =
T102 = tempest.hacking.checks:import_no_clients_in_api_and_scenario_tests
T104 = tempest.hacking.checks:scenario_tests_need_service_tags
T105 = tempest.hacking.checks:no_setup_teardown_class_for_tests
T107 = tempest.hacking.checks:service_tags_not_in_module_path
T108 = tempest.hacking.checks:no_hyphen_at_end_of_rand_name
N322 = tempest.hacking.checks:no_mutable_default_args
T109 = tempest.hacking.checks:no_testtools_skip_decorator
T110 = tempest.hacking.checks:get_resources_on_service_clients
T111 = tempest.hacking.checks:delete_resources_on_service_clients
T112 = tempest.hacking.checks:dont_import_local_tempest_into_lib
T113 = tempest.hacking.checks:use_rand_uuid_instead_of_uuid4
T114 = tempest.hacking.checks:dont_use_config_in_tempest_lib
T115 = tempest.hacking.checks:dont_put_admin_tests_on_nonadmin_path
T116 = tempest.hacking.checks:unsupported_exception_attribute_PY3
T117 = tempest.hacking.checks:negative_test_attribute_always_applied_to_negative_tests