Switch from pep8 to flake8
Change-Id: I13a77aac647ca5e47d9451472aa1f79eacefe8ab
This commit is contained in:
4
setup.py
4
setup.py
@@ -12,9 +12,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import sys
|
||||
import setuptools
|
||||
from openstack.common import setup
|
||||
from libraclient import __version__
|
||||
|
||||
requires = setup.parse_requirements()
|
||||
tests_requires = setup.parse_requirements(['tools/test-requires'])
|
||||
@@ -36,8 +36,6 @@ try:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
execfile('libraclient/__init__.py')
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name="python-libraclient",
|
||||
|
@@ -1,4 +1,4 @@
|
||||
pep8
|
||||
flake8
|
||||
mock
|
||||
sphinx>=1.1.2
|
||||
testrepository>=0.0.8
|
||||
|
8
tox.ini
8
tox.ini
@@ -13,9 +13,13 @@ downloadcache = ~/cache/pip
|
||||
[testenv:py27]
|
||||
|
||||
[testenv:pep8]
|
||||
deps = pep8
|
||||
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*openstack/common*,*lib/python*,*egg libraclient setup.py
|
||||
deps = flake8
|
||||
commands = flake8
|
||||
|
||||
[testenv:pyflakes]
|
||||
deps = pyflakes
|
||||
commands = pyflakes libraclient
|
||||
|
||||
[flake8]
|
||||
show-source = True
|
||||
exclude = .venv,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tests,build
|
||||
|
Reference in New Issue
Block a user