-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
43 lines (39 loc) · 937 Bytes
/
tox.ini
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
[tox]
envlist =
check,
py-{linux,windows},
[testenv]
usedevelop = True
extras = test
platform =
windows: win32
linux: linux
setenv =
windows: COVCONFIG = .coveragerc_windows
passenv =
*
commands =
py.test -s -rsx --cov=keepitfresh --cov-report html --cov-fail-under=80 --cov-report term test_keepitfresh.py --cov-config {env:COVCONFIG:.coveragerc_unix}
[testenv:check]
extras = check
commands =
isort -rc keepitfresh.py test_keepitfresh.py setup.py
python setup.py check --strict --metadata --restructuredtext
python setup.py checkdocs
flake8 keepitfresh.py test_keepitfresh.py setup.py
pylint keepitfresh.py setup.py
[testenv:docs]
changedir = docs
whitelist_externals =
make
extras = docs
commands =
make html
make linkcheck
[testenv:clean]
whitelist_externals =
make
extras = docs
commands =
python setup.py clean --all --bdist-base dist/
make clean -C docs