This repository was archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (43 loc) · 1.5 KB
/
tox.ini
File metadata and controls
52 lines (43 loc) · 1.5 KB
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
[flake8]
max-line-length = 120
exclude = .venv,.tox,dist,doc,build,*.egg
[tox]
envlist = fix_lint,flake8,pep8,docs,{py34,py35,py36,py37,pypy}-{test}
skip_missing_interpreters = true
[testenv]
deps =
pytest==4.1.0
pytest-mock==1.10.1
commands =
pytest --junit-xml {toxworkdir}/reports/{envname}/report.xml ./tests
[testenv:fix_lint]
basepython = python3.6
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
passenv = HOMEPATH
# without PROGRAMDATA cloning using git for Windows will fail with an
# `error setting certificate verify locations` error
PROGRAMDATA
extras = lint
deps =
pre-commit == 1.14.2
skip_install = True
commands = pre-commit run --all-files --show-diff-on-failure
python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
[pep8]
max-line-length = 120
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
line_length = 120
known_first_party = tox,tests
known_third_party = click,git,gitlab,pytest,setuptools,yaml
[testenv:docs]
basepython =
python3
changedir=docs
deps= -r{toxinidir}/requirementsDocs.txt
commands=
sphinx-build -b spelling -d {envtmpdir}/doctrees . {envtmpdir}/spelling
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
# sphinx-build -c {toxinidir}/docs/conf.py -b spelling -b html -d {envtmpdir}/doctrees {envtmpdir}/api {envtmpdir}/html