Ensure flake8 runs with a valid settings file

The H301 check sometimes imports a file when trying to tell whether it
is a module. Ensure we run flake8 in a valid environment to avoid
any side-effects from this.

Fixes bug #1191748.

Change-Id: I35fdefcd8f4c465a89f884299a0a9f4a4c79a6f6
This commit is contained in:
Kieran Spear 2013-06-19 19:50:27 +10:00
parent f66e2730fd
commit 86a3d3d3bb

View File

@ -137,7 +137,7 @@ function run_pylint {
function run_pep8 {
echo "Running flake8 ..."
${command_wrapper} flake8 $included_dirs
DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings ${command_wrapper} flake8 $included_dirs
}
function run_sphinx {