-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
81 lines (67 loc) · 1.53 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist = safety, black-check, docs, flake8, liccheck, mypy, py3.8, py3.7, py3.6
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
pytest-cov
pytest-randomly
hypothesis-pytest
commands =
pytest --basetemp={envtmpdir} --doctest-modules \
pythomata tests/ \
--cov=pythomata \
--cov-report=xml \
--cov-report=html \
--cov-report=term \
--hypothesis-show-statistics
[testenv:py3.6]
basepython = python3.6
[testenv:py3.7]
basepython = python3.7
[testenv:py3.8]
basepython = python3.8
[testenv:flake8]
deps =
flake8
flake8-docstrings
flake8-bugbear
pydocstyle
commands =
# TODO add tests
flake8 pythomata
[testenv:mypy]
deps =
mypy
commands =
mypy pythomata tests
[testenv:black]
deps = black==19.10b0
commands = black pythomata tests scripts
[testenv:black-check]
deps = black==19.10b0
commands = black pythomata tests scripts --check --verbose
[testenv:liccheck]
deps = liccheck
commands = {toxinidir}/scripts/freeze_dependencies.py -o {envtmpdir}/requirements.txt
liccheck -s strategy.ini -r {envtmpdir}/requirements.txt -l PARANOID
[testenv:safety]
deps = safety
commands = safety check
[testenv:docs]
deps =
mkdocs
markdown-include
pymdown-extensions
commands =
mkdocs build --clean
[testenv:docs-serve]
deps =
mkdocs
markdown-include
pymdown-extensions
commands =
mkdocs build --clean
python -c 'print("###### Starting local server. Press Control+C to stop server ######")'
mkdocs serve