swauth/tox.ini
Peter Lisák 69cadf8499 tox.ini and unittest fix
Change-Id: Ic6b2435159c63adc81b8881a7a0c1e65a14f7c1c
2015-11-13 09:57:19 +01:00

64 lines
2.1 KiB
INI

[tox]
minversion = 1.6
envlist = py27,pep8
skipsdist = True
[testenv]
basepython = python2.7
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
https://launchpad.net/swift/kilo/2.3.0/+download/swift-2.3.0.tar.gz
commands = python setup.py test
[testenv:pep8]
commands = flake8 swauth test_swauth
[testenv:venv]
commands = {posargs}
#[testenv:cover]
#commands = python setup.py test --coverage
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# will be removed later
# H234 assertEquals is deprecated, use assertEqual
# H405 multi line docstring summary not separated with an empty line
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# H235 assert_ is deprecated, use assertTrue
# E131 continuation line unaligned for hanging indent
# E124 closing bracket does not match visual indentation
# E121 continuation line under-indented for hanging indent
# H306 imports not in alphabetical order
# H404 multi line docstring should start without a leading new line
# H301 one import per line
# F841 local variable 'detail' is assigned to but never used
# H231 Python 3.x incompatible 'except x,y:' construct
# H233 Python 3.x incompatible use of print operator
# E226 missing whitespace around arithmetic operator
# W291 trailing whitespace
# H202 assertRaises Exception too broad
# H101 Use TODO(NAME)
# F401 '' imported but unused
# H703 Multiple positional placeholders
# E501 line too long (93 > 79 characters)
# E703 statement ends with a semicolon
# F841 local variable 'detail' is assigned to but never used
# H102 Apache 2.0 license header not found
# E302 expected 2 blank lines, found 1
show-source = True
ignore = E123,E125,H234,H405,E127,E128,H235,E131,E124,E121,H306,H404,H301,
F841,H231,H233,E226,W291,H202,H101,F401,H703,E501,E703,F841,H102,E302
builtins = _
exclude=.venv,.git,.tox,dist,doc,*egg,build