summaryrefslogtreecommitdiff
path: root/tox.ini
blob: c79c5632b36691f3449b9c0ac1f5995218a5d91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[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]
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]
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 =