forked from vmware-archive/column
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
50 lines (44 loc) · 1.54 KB
/
tox.ini
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
38
39
40
41
42
43
44
45
46
47
48
49
50
; Copyright (c) 2017 VMware, Inc. All Rights Reserved.
; SPDX-License-Identifier: GPL-3.0
[tox]
minversion = 1.6
envlist = pep8,py27,cover
skipsdist = True
[travis]
python =
2.7: pep8,py27,cover
[testenv]
sitepackages = True
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# If using command python -m testtools.run discover tests, it is possible
# to break the column api service, because testtools will run all those tests
# concurrently, yet column service does not support concurrent request.
commands =
python -m testtools.run tests.test_api_runner
python -m testtools.run discover tests.api
python -m testtools.run discover tests.cache
python -m testtools.run tests.test_exceptions
[testenv:pep8]
sitepackages = False
commands =
flake8 {posargs}
[testenv:cover]
sitepackages = False
commands =
coverage erase
coverage run --source column -m testtools.run discover tests
coverage html
coverage xml
[flake8]
# E712 is ignored on purpose, since it is normal to use 'column == true'
# in sqlalchemy.
# H803 skipped on purpose per list discussion.
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# The rest of the ignores are TODOs
# H306 is temporarily excluded due a cirtuclar dependency in ansible module
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E711,E712,F811,F841,H803,H306,H405
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools