-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
96 lines (83 loc) · 1.68 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]
isolated_build = true
envlist =
# Delete previous coverage reports
coverage-clean
# linters format and check that PEP8 style guidelines are followed
linters
# 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]
deps =
coverage
pytest
commands =
coverage run -p -m pytest
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:linters:base]
skip_install = true
deps =
flake8
flake8-colors
flake8-docstrings
flake8-builtins
flake8-use-fstring
flake8-black
flake8-isort
commands =
flake8 {posargs:aop2db/ tests/ setup.py}
[testenv:linters]
deps =
isort
black
{[testenv:linters:base]deps}
commands =
isort aop2db/
black aop2db/
flake8 aop2db/
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
changedir = docs
whitelist_externals =
/usr/bin/cat
/usr/bin/cp
/usr/bin/mkdir
deps =
sphinx
sphinx_rtd_theme
sphinx-click
sphinx_autodoc_typehints
commands =
sphinx-build -b html -d {envtmpdir}/build/doctrees source {envtmpdir}/build/html
####################
# Deployment tools #
####################
[testenv:bumpversion]
deps =
bump2version
commands = bump2version {posargs}
skip_install = true
[testenv:publish]
basepython = python3
skip_install = true
whitelist_externals =
git
poetry
deps =
bumpversion
commands =
bumpversion patch
poetry publish --build
git push