tox.ini 733 Bytes
Newer Older
user's avatar
user committed
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
36
37
38
39
40
41
42
43
44
45
46
[tox]
skip_missing_interpreters = True
envlist =
    py{36, 37, 38, 39, nightly}
    black,
    lint
    doc,
    stats

[testenv]
usedevelop = true
deps = .[test]
commands =
    python -m coverage run --append --module pytest

[testenv:black]
skip_install = True
deps = black
commands =
  black --check --diff changeme tests

[testenv:lint]
skip_install = True
deps = flake8
commands =
  flake8 changeme tests

[testenv:stats]
skip_install = True
deps = coverage
commands=
    python -m coverage report
    python -m coverage html

[testenv:doc]
deps = .[doc]
whitelist_externals = make
changedir = {toxinidir}/docs
commands =
    make html
    make man

[testenv:clean]
skip_install = True
deps = coverage
command = coverage erase