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
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import sys
|
|
||||||
import setuptools
|
import setuptools
|
||||||
from openstack.common import setup
|
from openstack.common import setup
|
||||||
|
from libraclient import __version__
|
||||||
|
|
||||||
requires = setup.parse_requirements()
|
requires = setup.parse_requirements()
|
||||||
tests_requires = setup.parse_requirements(['tools/test-requires'])
|
tests_requires = setup.parse_requirements(['tools/test-requires'])
|
||||||
@@ -36,8 +36,6 @@ try:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
execfile('libraclient/__init__.py')
|
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="python-libraclient",
|
name="python-libraclient",
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
pep8
|
flake8
|
||||||
mock
|
mock
|
||||||
sphinx>=1.1.2
|
sphinx>=1.1.2
|
||||||
testrepository>=0.0.8
|
testrepository>=0.0.8
|
||||||
|
8
tox.ini
8
tox.ini
@@ -13,9 +13,13 @@ downloadcache = ~/cache/pip
|
|||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = pep8
|
deps = flake8
|
||||||
commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*openstack/common*,*lib/python*,*egg libraclient setup.py
|
commands = flake8
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[testenv:pyflakes]
|
||||||
deps = pyflakes
|
deps = pyflakes
|
||||||
commands = pyflakes libraclient
|
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