irc-meetings/tox.ini
Thierry Carrez 6e50a8496f Use python3 to run pep8 job
The pep8 job runs additional python commands,
it should run those under python3 too.

Change-Id: I635f5c193913df6f252050747744c3af62caf403
2018-11-07 18:23:09 +01:00

40 lines
910 B
INI

[tox]
envlist = ical,pep8
minversion = 1.6
skipsdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:ical]
basepython = python3
whitelist_externals = mkdir
commands =
mkdir -p output/calendars
yaml2ical -n "OpenStack Meetings" \
-d "Meeting schedule for the OpenStack projects" \
-y meetings -o output/irc-meetings.ical \
-t meetingindex.jinja -w output/index.html -f
yaml2ical -y meetings -i output/calendars/ -f
[testenv:pep8]
basepython = python3
whitelist_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 =