-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
83 lines (70 loc) · 1.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist = lint,test
[flake8]
max_line_length = 89
exclude = .eggs,.tox,.cache,inotify_simple.py,__scratchpad.py
[pytest]
addopts = -lvv
xfail_strict = True
[testenv]
basepython = python3.7
extras =
lint: lint
test: test
docs: docs
[testenv:i3configger]
description = run e.g. `tox -e i3configger -- --daemon`
commands = i3configger {posargs}
[testenv:lint]
description = run pre-commit fixes and checks
commands =
pre-commit run --all-files
python -c 'print("install hook: {envdir}/bin/pre-commit install")'
[testenv:test]
description = run tests with pytest
commands =
coverage run -m pytest
coverage html
coverage report
[testenv:coveralls]
description = send report to coveralls
setenv = COVERALLS_REPO_TOKEN = zCycry7u83alwoxtvxKfZPMNGXVM37qzq
deps = coveralls
commands = coveralls
[testenv:release]
description = release to PyPI
extras = release
commands = python {toxinidir}/release.py {posargs}
[testenv:docs-auto]
envdir = {toxworkdir}/docs
description = start a reloading server for the docs
commands =
mkdocs build --clean
python -c 'print("### Start local server. Press Control+C to stop ###")'
mkdocs serve -a localhost:8080
[testenv:docs-clean]
envdir = {toxworkdir}/docs
description = remove documentation build folder
skip_install = True
whitelist_externals = rm
commands = rm -rf {envdir}/build
[testenv:docs-deploy]
envdir = {toxworkdir}/docs
description = push the docs online
commands = mkdocs gh-deploy --clean
[testenv:docs-deploy-force]
envdir = {toxworkdir}/docs
description = push the docs online (with extra ooomph!)
whitelist_externals = git
commands =
- git branch -D gh-pages
- git push origin --delete gh-pages
mkdocs gh-deploy --clean
[testenv:dev]
description = dev env at {envpython}
usedevelop = True
extras =
lint
test
docs
release