Borjan Tchakaloff | 7a70e55 | 2018-08-02 16:26:34 +0200 | [diff] [blame] | 1 | # tox (https://tox.readthedocs.io/) 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 | envlist = py35 |
| 8 | # There is no proper way to install the app for now (i.e. setup.py) |
| 9 | skipsdist = True |
| 10 | |
| 11 | [testenv] |
| 12 | deps = |
| 13 | -rrequirements.txt |
| 14 | psycopg2 |
| 15 | commands = |
| 16 | python manage.py test |
| 17 | |
| 18 | # Linters |
| 19 | [testenv:flake8] |
| 20 | deps = |
| 21 | -rrequirements-dev-flake8.txt |
| 22 | commands = |
| 23 | flake8 crashreports crashreport_stats hiccup |
| 24 | |
| 25 | [testenv:pylint] |
| 26 | deps = |
| 27 | -rrequirements.txt |
| 28 | -rrequirements-dev-pylint.txt |
| 29 | commands = |
| 30 | pylint crashreports crashreport_stats hiccup |
| 31 | |
| 32 | [testenv:linters] |
| 33 | deps = |
| 34 | {[testenv:flake8]deps} |
| 35 | {[testenv:pylint]deps} |
| 36 | commands = |
| 37 | {[testenv:flake8]commands} |
| 38 | {[testenv:pylint]commands} |
| 39 | |
| 40 | # Flake8 configuration |
| 41 | [flake8] |
| 42 | format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s |
Borjan Tchakaloff | 7a70e55 | 2018-08-02 16:26:34 +0200 | [diff] [blame] | 43 | max-complexity = 10 |