Skip to content
Snippets Groups Projects

Update and clean tox configuration for version 4

Merged Jérémy Bobbio (Lunar) requested to merge lunar/swh-web-client:tox4-compat into master
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
+ 5
6
[tox]
requires =
tox>4
envlist=black,flake8,mypy,py3
[testenv]
@@ -40,14 +42,13 @@ commands =
# git HEAD of swh-docs, is executed on CI for each diff to prevent
# breaking doc build
[testenv:sphinx]
whitelist_externals = make
allowlist_externals = make
usedevelop = true
extras =
testing
deps =
# fetch and install swh-docs in develop mode
-e git+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs
-e git+https://forge.softwareheritage.org/source/swh-docs.git\#egg=swh.docs
setenv =
SWH_PACKAGE_DOC_TOX_BUILD = 1
# turn warnings into errors
@@ -55,18 +56,16 @@ setenv =
commands =
make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs
# build documentation only inside swh-environment using local state
# of swh-docs package
[testenv:sphinx-dev]
whitelist_externals = make
allowlist_externals = make
usedevelop = true
extras =
testing
deps =
# install swh-docs in develop mode
-e ../swh-docs
setenv =
SWH_PACKAGE_DOC_TOX_BUILD = 1
# turn warnings into errors
Loading