From 00c072a43793b3139597dc3fcb61a38d25e7eabf Mon Sep 17 00:00:00 2001 From: Kui Shi Date: Tue, 20 Aug 2013 06:59:23 +0800 Subject: [PATCH] Move flake8 option from run_tests.sh to tox.ini flake8 will read the section [flake8] of tox.ini to guide the behavior. In run_tests.sh, there is no need to add flake8 option in run_flake8() function. Bug #1214175 Change-Id: If3b84a0a3eecc1a9800fed6be9b24e648c161280 --- run_tests.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 142bff8da..ea8c0b6b4 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -134,10 +134,7 @@ function run_flake8 { echo "Running flake8 ..." srcfiles="keystoneclient tests" # Just run Flake8 in current environment - ${wrapper} flake8 --show-pep8 --show-source \ - --ignore=F811,F821,F841,H201,H202,H302,H304,H404,H802 \ - --exclude=.venv,.tox,dist,doc,*egg,build \ - ${srcfiles} + ${wrapper} flake8 ${srcfiles} } TESTRTESTS="python setup.py testr"