-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
96 lines (82 loc) · 1.63 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
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist =
# Delete previous coverage reports
coverage-clean
# checks that PEP8 style guidelines are followed
lint
# Make sure all the documentation files are in order
docs
# Runs the tests and reports how much of the base code is covered
py
coverage-report
[testenv]
commands = coverage run -p -m pytest
deps=
coverage
coverage[toml]
pytest
[testenv:coverage-clean]
deps =
coverage
coverage[toml]
commands = coverage erase
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:manifest]
deps = check-manifest
skip_install = true
commands = check-manifest
[testenv:lint]
skip_install = true
deps =
black
isort
commands =
black ebel/ tests/
isort ebel/ tests/
[testenv:docs]
description = Build docs site with Mkdocs
whitelist_externals =
/usr/bin/cp
C:\Program Files\Git\usr\bin\cp.EXE
deps =
mkdocs
mkdocs-render-swagger-plugin
mkdocs-click
mkdocstrings
mkdocstrings-python
Pygments>=2.13.0
commands =
cp -r ebel/web/openapi.yml docs/openapi.yml
mkdocs build
####################
# Deployment tools #
####################
[testenv:bumpversion]
commands = bumpversion {posargs}
skip_install = true
deps =
bumpversion
[testenv:release]
basepython = python3
skip_install = true
deps =
poetry
commands =
poetry publish --build
[testenv:finish]
basepython = python3
skip_install = true
whitelist_externals =
/bin/git
/usr/local/bin/git
deps =
{[testenv:release]deps}
bumpversion
commands =
bumpversion patch
{[testenv:release]commands}