Forked from
Platform / Development / swh-docs
179 commits behind the upstream repository.
-
Jérémy Bobbio (Lunar) authored
Even if our `tox.ini` is compatible with tox 3, the command line format changed with tox 4. For consistency in layout, usage and documentation, it seems best to update requirements to version 4. See: https://tox.wiki/en/latest/upgrading.html#updating-usage-with-e
Jérémy Bobbio (Lunar) authoredEven if our `tox.ini` is compatible with tox 3, the command line format changed with tox 4. For consistency in layout, usage and documentation, it seems best to update requirements to version 4. See: https://tox.wiki/en/latest/upgrading.html#updating-usage-with-e
tox.ini 826 B
[tox]
requires =
tox>4
envlist=flake8,black
[testenv]
basepython = python3
passenv =
SPHINXOPTS
SPHINXOPTCOLOR
JAVA_HOME
[testenv:sphinx]
extras =
building
deps =
django < 3
pifpaf
setenv =
SWHPKGDIR = {envsitepackagesdir}/swh
commands =
{envpython} -m pifpaf run postgresql -- make -C docs {posargs:html}
[testenv:sphinx-dev]
allowlist_externals = make
setenv =
SWHPKGDIR = {envsitepackagesdir}/swh
commands =
# use custom install script for dev build
make pip-install-swh-dev
{envpython} -m pifpaf run postgresql -- make -C docs {posargs:html}
[testenv:black]
skip_install = true
deps =
black==22.10.0
commands =
{envpython} -m black --check swh
[testenv:flake8]
skip_install = true
deps =
flake8==5.0.4
flake8-bugbear==22.9.23
pycodestyle==2.9.1
commands =
{envpython} -m flake8