-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
44 lines (39 loc) · 841 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
44
[tox]
skipsdist=True
skip_missing_interpreters =
True
envlist =
py36
py35
[flake8]
per-file-ignores =
docs/source/conf.py: E121,E122,E265,E501
examples/client_floodfill.py: C901
mmsim/ui.py: N802
mmsim/graphics.py: N802
inline-quotes = single
multiline-quotes = double
max-complexity = 6
[isort]
force_single_line = True
[testenv]
deps =
-e.[test]
commands =
pytest --basetemp={envtmpdir} --cache-clear -v --cov
[testenv:lint]
deps =
-e.[lint]
commands =
black . --diff --check
flake8
[testenv:docs]
deps =
-e.[docs]
commands =
doc8 README.rst
doc8 docs/source/
sphinx-build -E -W --color -b html -d {envtmpdir}/doctrees \
docs/source {envtmpdir}/html
sphinx-build -E -W --color -b linkcheck -d {envtmpdir}/doctrees \
docs/source {envtmpdir}/linkcheck