Newer
Older
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
[tox]
envlist =
{py35,py36,py37}-test
lint
sort
format
type
docs
skip_missing_interpreters = True
isolated_build = True
[testenv]
extras =
test
commands =
pytest test/ --cov={toxinidir}/librehosters_cli/ --no-cov-on-fail {posargs}
[testenv:lint]
description = lint the source
extras =
lint
commands =
flake8 {posargs} librehosters_cli/ test/
[testenv:sort]
description = sort the source
extras =
sort
commands =
isort {posargs:-rc -c} -sp setup.cfg librehosters_cli/ test/
[testenv:format]
description = format the source
extras =
format
commands =
black {posargs:--check} librehosters_cli/ test/
[testenv:type]
description = type check the source
basepython = python3.7
extras =
type
commands =
mypy librehosters_cli/ test/
[testenv:docs]
description = build the documentation
extras =
docs
commands =
python -m setup build_sphinx
[testenv:metadata-release]
description = validate the package metadata
extras =
pkg
commands =
twine check .tox/dist/*
[testenv:test-release]
description = make a test release
extras =
pkg
commands =
python -m setup sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
[testenv:prod-release]
description = make a production release
extras =
pkg
commands =
python -m setup sdist bdist_wheel
twine upload dist/*