summaryrefslogtreecommitdiff
path: root/tox.ini
blob: b1a1e81643b3428bf2c2f42f1ba5f3f8fa1bcaf9 (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
34
35
[tox]
envlist = py{27,34,35,36,37,38}

[testenv]
cov_args=--cov=mako --cov-report term --cov-report xml

deps=pytest>=3.1.0
     mock
     beaker
     markupsafe
     pygments
     babel
     dogpile.cache
     lingua<4
     cov: pytest-cov

setenv=
    cov: COVERAGE={[testenv]cov_args}

commands=py.test {env:COVERAGE:} {posargs}


# thanks to https://julien.danjou.info/the-best-flake8-extensions/
[testenv:pep8]
basepython = python3.7
deps=
      flake8
      flake8-import-order
      flake8-builtins
      flake8-docstrings
      flake8-rst-docstrings
      pydocstyle<4.0.0
      # used by flake8-rst-docstrings
      pygments
commands = flake8 ./mako/ ./test/ setup.py --exclude test/templates,test/foo