rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 1 | [tox] |
HeroicHitesh | 67f98f8 | 2021-05-20 12:32:36 +0530 | [diff] [blame] | 2 | envlist = py3,pep8 |
| 3 | minversion = 3.18.0 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 4 | skipsdist = True |
Ghanshyam | 4780eec | 2020-01-25 12:25:04 -0600 | [diff] [blame] | 5 | ignore_basepython_conflict = True |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 6 | |
| 7 | [testenv] |
Ghanshyam | 4780eec | 2020-01-25 12:25:04 -0600 | [diff] [blame] | 8 | basepython = python3 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 9 | userdevelop = True |
| 10 | setenv = VIRTUAL_ENV={envdir} |
| 11 | deps = -r{toxinidir}/requirements.txt |
| 12 | -r{toxinidir}/test-requirements.txt |
Pavlo Shchelokovskyy | d111a43 | 2020-12-15 10:29:11 +0200 | [diff] [blame] | 13 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2023.1} |
HeroicHitesh | 67f98f8 | 2021-05-20 12:32:36 +0530 | [diff] [blame] | 14 | commands = stestr run --slowest {posargs} |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 15 | |
| 16 | [testenv:pep8] |
ricolin | 9b02d1e | 2017-12-29 15:35:49 +0800 | [diff] [blame] | 17 | setenv = |
| 18 | PYTHONPATH = . |
| 19 | commands = |
| 20 | flake8 |
| 21 | check-uuid --package heat_tempest_plugin |
| 22 | |
| 23 | [testenv:uuidgen] |
| 24 | setenv = |
| 25 | PYTHONPATH = . |
| 26 | commands = |
| 27 | check-uuid --fix --package heat_tempest_plugin |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 28 | |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 29 | [testenv:venv] |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 30 | commands = {posargs} |
| 31 | |
| 32 | [flake8] |
| 33 | show-source = True |
| 34 | builtins = _ |
Andreas Jaeger | d74b438 | 2020-04-07 11:44:04 +0200 | [diff] [blame] | 35 | # W504 line break after binary operator |
| 36 | # E741 ambiguous variable name 'l' |
| 37 | ignore = W504,E741 |
rabi | d2916d0 | 2017-09-22 18:19:24 +0530 | [diff] [blame] | 38 | exclude=.venv,.git,.tox,*lib/python*,private,.eggs |