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
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user