remove flake8 option in run_tests.sh
flake8 read [flake8] section of tox.ini as options. function run_flake8 in run_tests.sh should be kept simple, and tox.ini controls the behavior of flake8. Fixes Bug #1212988 Change-Id: I35d434ccea1ca2f3ff93657e4ca6dde93bbbf29e
This commit is contained in:
parent
63b64381eb
commit
63f7995c07
@ -68,12 +68,8 @@ function run_tests {
|
||||
|
||||
function run_flake8 {
|
||||
echo "Running flake8 ..."
|
||||
FLAKE8_EXCLUDE=".venv,.git,.tox,dist,doc,etc,*glance/locale*,*openstack/common*,*lib/python*,*egg,build"
|
||||
FLAKE8_OPTIONS="--exclude=$FLAKE8_EXCLUDE"
|
||||
FLAKE8_IGNORE="--ignore=E125,E126,E711,E712,F,H"
|
||||
FLAKE8_INCLUDE="."
|
||||
|
||||
${wrapper} flake8 $FLAKE8_OPTIONS $FLAKE8_INCLUDE $FLAKE8_IGNORE
|
||||
${wrapper} flake8
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user