added pylint and cleaned up test-requirements

This commit is contained in:
amitgandhinz 2014-08-07 17:06:03 -04:00
parent bd4ff7199e
commit 8daef25ef9
2 changed files with 24 additions and 24 deletions

View File

@ -1,23 +1,9 @@
# Metrics and style
hacking>=0.5.6,<0.8
# Packaging
mock>=1.0
# Unit Tests
ddt>=0.4.0
discover
fixtures>=0.3.14
httpretty>=0.6.3
python-subunit
testrepository>=0.0.17
testtools>=0.9.32
# Functional Tests
requests>=1.1
# Test runner
nose
nose-exclude
openstack.nose_plugin>=0.7
coverage
ddt
fixtures
hacking
mock
nose
openstack.nose_plugin
requests
testtools

18
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = py26,py27,py33,pypy,pep8,cover
envlist = py26,py27,py33,pypy,pep8,lint2,lint3,cover
skipsdist = True
[testenv]
@ -24,6 +24,20 @@ downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8
[testenv:lint2]
basepython = python2
deps = {[testenv]deps}
pylint
commands = pylint ./poppy
pylint ./tests
[testenv:lint3]
basepython = python3
deps = {[testenv]deps}
pylint
commands = pylint ./poppy
pylint ./tests
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
@ -35,4 +49,4 @@ builtins = __CDN_SETUP__
exclude = .venv*,venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv
[hacking]
import_exceptions = cdn.openstack.common.gettextutils._
import_exceptions = poppy.openstack.common.gettextutils._