From 5d51e3873d51efdb3ad01c9849b39322f1c6950c Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 29 Mar 2013 14:34:25 +0100 Subject: [PATCH] Use flake8 instead of pep8. --- tests/test_accounts.py | 2 +- tox.ini | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_accounts.py b/tests/test_accounts.py index 9bd55fa..959f74f 100644 --- a/tests/test_accounts.py +++ b/tests/test_accounts.py @@ -71,7 +71,7 @@ class TestAccount(test_base.TestCase): ret_orig_storage_id = sorted( x[0][x[0].find('AUTH_') + 5:] for x in ret) self.assertEquals(tenant_list_ids, ret_orig_storage_id) - [self.assertTrue(x[1].startswith(STORAGE_DEST)) for x in ret] + [self.assertTrue(y[1].startswith(STORAGE_DEST)) for y in ret] def test_sync_account(self): ret = [] diff --git a/tox.ini b/tox.ini index 47f83d6..d0ac1fb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,pep8 +envlist = py27,flake8 [testenv] setenv = VIRTUAL_ENV={envdir} @@ -11,9 +11,9 @@ deps = -r{toxinidir}/tools/pip-requires -r{toxinidir}/tools/test-requires commands = python setup.py testr --testr-args="{posargs}" -[testenv:pep8] -deps = pep8 -commands = pep8 --repeat --show-source swsync bin setup.py tests +[testenv:flake8] +deps = flake8 +commands = flake8 --show-source swsync bin setup.py tests [testenv:venv] commands = {posargs}