blob: f2e1099bcbb6e360eb7ce3c1061f56c66b62203e [file] [log] [blame]
rabid2916d02017-09-22 18:19:24 +05301[tox]
Ghanshyam4780eec2020-01-25 12:25:04 -06002envlist = py37,pep8
3minversion = 3.1.1
rabid2916d02017-09-22 18:19:24 +05304skipsdist = True
Ghanshyam4780eec2020-01-25 12:25:04 -06005ignore_basepython_conflict = True
rabid2916d02017-09-22 18:19:24 +05306
7[testenv]
Ghanshyam4780eec2020-01-25 12:25:04 -06008basepython = python3
rabid2916d02017-09-22 18:19:24 +05309userdevelop = True
10setenv = VIRTUAL_ENV={envdir}
11deps = -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt
Pavlo Shchelokovskyyb14bf282020-12-15 10:29:11 +020013 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
rabid2916d02017-09-22 18:19:24 +053014commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
15 testr run {posargs}
16
17[testenv:pep8]
ricolin9b02d1e2017-12-29 15:35:49 +080018setenv =
19 PYTHONPATH = .
20commands =
21 flake8
22 check-uuid --package heat_tempest_plugin
23
24[testenv:uuidgen]
25setenv =
26 PYTHONPATH = .
27commands =
28 check-uuid --fix --package heat_tempest_plugin
rabid2916d02017-09-22 18:19:24 +053029
rabid2916d02017-09-22 18:19:24 +053030[testenv:venv]
rabid2916d02017-09-22 18:19:24 +053031commands = {posargs}
32
33[flake8]
34show-source = True
35builtins = _
Andreas Jaeger9bf9be82020-04-07 11:44:04 +020036# W504 line break after binary operator
37# E741 ambiguous variable name 'l'
38ignore = W504,E741
rabid2916d02017-09-22 18:19:24 +053039exclude=.venv,.git,.tox,*lib/python*,private,.eggs