summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorwu.chunyang <wuchunyang@yovole.com>2022-07-11 21:56:26 +0800
committerwu.chunyang <wuchunyang@yovole.com>2022-07-11 21:56:26 +0800
commitf9f3bca8f7f867dfcc5716224dc5b13270b17180 (patch)
treefda1193121d28d250d1acbc1d80d06806a0eabd1 /tox.ini
parent226e8896b6c8f7e473508e0d37d3c3a18cf77ca5 (diff)
downloadtrove-f9f3bca8f7f867dfcc5716224dc5b13270b17180.tar.gz
Add release note(aka. reno) guide
This PR adds reloease note guide for trove project and renames some notes due to uid collision Change-Id: I55f49425dc3df6599ff6714efd8f7c1dc656ddf2
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 799454a6..c35a01df 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,9 +26,15 @@ allowlist_externals = find
bash
[testenv:pep8]
+deps =
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -r{toxinidir}/test-requirements.txt
commands =
flake8
+ reno lint
doc8 {posargs}
+ doc8 -e '.yaml' releasenotes/notes/
+ doc8 doc/source
[testenv:debug]
commands = oslo_debug_helper {posargs}
@@ -79,7 +85,13 @@ commands =
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:releasenotes]
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
+deps =
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+ -r{toxinidir}/doc/requirements.txt
+allowlist_externals = rm
+commands =
+ rm -rf releasenotes/build
+ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:bandit]
commands = bandit -r trove -n5 -x tests