Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 1 | # Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 | # in multiple virtualenvs. This configuration file will run the |
| 3 | # test suite on all supported python versions. To use it, "pip install tox" |
| 4 | # and then run "tox" from this directory. |
| 5 | |
| 6 | [tox] |
| 7 | skipsdist = True |
Dennis Dmitriev | 9b02c8b | 2017-11-13 15:31:35 +0200 | [diff] [blame] | 8 | #envlist = pep8, py{27,35} |
| 9 | # requirement functools32 is not installed for py35 |
| 10 | envlist = pep8,py27 |
Dmitry | 011d2a0 | 2016-10-25 23:24:40 +0300 | [diff] [blame] | 11 | |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 12 | [testenv] |
Dennis Dmitriev | 9b02c8b | 2017-11-13 15:31:35 +0200 | [diff] [blame] | 13 | install_command = pip install -U {opts} {packages} |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 14 | deps = |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 15 | -r{toxinidir}/tcp_tests/requirements.txt |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 16 | usedevelop = False |
| 17 | commands = py.test -s -vvv tcp_tests/tests/unit |
| 18 | |
| 19 | [testenv:venv] |
| 20 | commands = {posargs} |
| 21 | |
| 22 | [testenv:pep8] |
Dmitry Tyzhnenko | 240b67c | 2019-05-21 16:55:55 +0300 | [diff] [blame] | 23 | deps = |
| 24 | flake8 |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 25 | usedevelop = False |
| 26 | exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local* |
| 27 | commands = |
| 28 | flake8 {posargs:.} |
| 29 | |
| 30 | [flake8] |
Dennis Dmitriev | 6f59add | 2016-10-18 13:45:27 +0300 | [diff] [blame] | 31 | exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib |
| 32 | show-pep8 = True |
| 33 | show-source = True |
| 34 | count = True |