bd2797d5da
A variety of cleanups and configuration updates necessitated by tox v4, but which should be compatible with v3. Change-Id: I6bf01a77555738c91c466eff303e8f2ff6967f63
42 lines
1.0 KiB
INI
42 lines
1.0 KiB
INI
[tox]
|
|
envlist = ical,pep8
|
|
minversion = 3
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:ical]
|
|
allowlist_externals =
|
|
mkdir
|
|
ln
|
|
commands =
|
|
mkdir -p doc/build/html/calendars
|
|
yaml2ical -n "OpenStack Meetings" \
|
|
-d "Meeting schedule for the OpenStack projects" \
|
|
-y meetings -o doc/build/html/irc-meetings.ical \
|
|
-t meetingindex.jinja -w doc/build/html/index.html -f
|
|
yaml2ical -y meetings -i doc/build/html/calendars/ -f
|
|
# NOTE(ianw) 2021-06-02 : to maintain compatbility
|
|
# with old jobs that aren't using the default tox docs
|
|
# publishing methods, we symlink ./output
|
|
ln -sf ./doc/build/html/ output
|
|
|
|
[testenv:pep8]
|
|
allowlist_externals = bash
|
|
commands =
|
|
bash test_tools/flake8wrap.sh {posargs}
|
|
python tools/check_chair.py -y {toxinidir}/meetings
|
|
python tools/check_channels.py -y {toxinidir}/meetings
|
|
|
|
[flake8]
|
|
ignore =
|
|
exclude = .git,.tox
|
|
max-complexity = 14
|
|
|
|
[hacking]
|
|
import_exceptions =
|