-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
52 lines (44 loc) · 1.21 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
[tox]
envlist = lint,test
[pytest]
addopts = -rfEsxXw --strict --showlocals
[testenv:dev]
description = create dev env at {envdir}
usedevelop = True
commands = python -c "'created dev env at {envdir}'"
[testenv:lint]
description = run fixers and linters
usedevelop = True
extras = lint
commands =
black -l 79 {toxinidir}
flake8 {toxinidir}/mau_mau {toxinidir}/tests --show-source
[testenv:test]
description = run automatic tests using pytest
extras = test
changedir = {toxinidir}/tests
commands = pytest
[testenv:docs-dev]
description = run local server that serves and rebuilds documentation
usedevelop = True
extras = docs
commands = mkdocs serve -a localhost:8080
[testenv:docs-deploy]
description = deploy documentation to github hosting
usedevelop = True
extras = docs
commands = mkdocs gh-deploy --clean
[testenv:docs-deploy-force]
description = delete documentation online and deploy completely fresh
usedevelop = True
extras = docs
whitelist_externals = git
commands =
- git branch -D gh-pages
- git push origin --delete gh-pages
mkdocs gh-deploy --clean
[testenv:docs-clean]
description = remove the generated documentation
skip_install = True
whitelist_externals = rm
commands = rm -rf docs/build