remove flake8 option from run_tests.sh
flake8 will read the section [flake8] of tox.ini to guide the behavior. In run_tests.sh, the function run_flake8() does not need the falke8 option any more. Fixes Bug #1214159 Change-Id: I1bbba279a339e35c776a6969598b398f57fd7646
This commit is contained in:
parent
da26317a14
commit
361185c0be
12
run_tests.sh
12
run_tests.sh
@ -127,17 +127,9 @@ function run_flake8 {
|
|||||||
|
|
||||||
|
|
||||||
echo "Running flake8 ..."
|
echo "Running flake8 ..."
|
||||||
# Opt-out files from flake8
|
|
||||||
ignore_scripts="*.pyc,*.pyo,*.sh,*.swp,*.rst"
|
|
||||||
ignore_files="*.txt"
|
|
||||||
ignore_dirs=".venv,.tox,build,dist,doc,openstack,vendor,*egg"
|
|
||||||
ignore="$ignore_scripts,$ignore_files,$ignore_dirs"
|
|
||||||
srcfiles="."
|
|
||||||
# Just run flake8 in current environment
|
# Just run flake8 in current environment
|
||||||
echo ${wrapper} flake8 $FLAGS --show-source \
|
echo ${wrapper} flake8 $FLAGS | tee pep8.txt
|
||||||
--exclude=${ignore} ${srcfiles} | tee pep8.txt
|
${wrapper} flake8 $FLAGS | tee pep8.txt
|
||||||
${wrapper} flake8 $FLAGS --show-source \
|
|
||||||
--exclude=${ignore} ${srcfiles} | tee pep8.txt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NOSETESTS="nosetests $noseopts $noseargs"
|
NOSETESTS="nosetests $noseopts $noseargs"
|
||||||
|
Loading…
Reference in New Issue
Block a user