aboutsummaryrefslogtreecommitdiffstats
path: root/heatbridge/tox.ini
blob: 9ff8ea376f81bb49d454c4c7099139518482ebec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27
modules =
  heatbridge

[testenv]
deps =
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}

[testenv:pep8]
basepython = python3
changedir = {toxinidir}
commands =
  flake8 --max-line-length 120 {[tox]modules}

[testenv:py27]
basepython = python2.7
commands = pytest

[testenv:pylint]
basepython = python3
deps =
    pyflakes
    pylint
commands =
    pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules}