forked from sphinx-contrib/spelling
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
38 lines (34 loc) · 838 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
[tox]
envlist=py38,linter,docs
[testenv]
# Use a local copy of my "fix-py3-install" branch from the fork of
# pyenchant that lets us install it from source.
# https://github.com/dhellmann/pyenchant/tree/fix-py3-install
deps=
.[test]
commands=
python setup.py test \
--coverage \
--coverage-package-name=sphinxcontrib.spelling \
--slowest \
--testr-args="{posargs}"
coverage report --show-missing
[testenv:linter]
basepython=python3.8
deps=
.[linter]
setenv =
BUILD=linter
commands =
flake8 sphinxcontrib setup.py
[flake8]
show-source = True
exclude = .tox,dist,doc,*.egg,build
ignore = W504
[testenv:docs]
setenv =
BUILD=docs
ENABLE_SPELLING=1
commands =
sphinx-build -W -b html docs/source docs/build
sphinx-build -b spelling docs/source docs/build