-
Notifications
You must be signed in to change notification settings - Fork 698
/
tox.ini
60 lines (52 loc) · 1.04 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
[tox]
envlist = coverage_clean, py27, py3{6, 8, 9}, py3, coverage_report
skip_missing_interpreters = true
isolated_build = true
skipsdist = true
# Unit tests
[testenv]
setenv =
tests_dir = {toxinidir}{/}tests/unit
PYTHONPATH = {toxinidir}
commands =
python -m pytest --cov-append --cov-report=xml --cov=ssg "{env:tests_dir}{/}ssg-module"
deps =
pyyaml
Jinja2
-r test-requirements.txt
# Coverage
[testenv:coverage_report]
deps = coverage
skip_install = true
commands =
coverage html
coverage xml
coverage report -m
[testenv:coverage_clean]
deps = coverage
skip_install = true
commands = coverage erase
# Code style
[flake8]
max-line-length = 99
per-file-ignores =__init__.py:F401
[testenv:flake8]
commands =
flake8 ssg utils tests build-scripts
deps =
flake8
# Documentation
[testenv:docs]
basepython = python3
allowlist_externals =
make
rm
deps =
-r docs/requirements.txt
commands_pre =
make -C docs clean
rm -rf docs/api
commands =
make -C docs html
commands_post =
make -C docs linkcheck