Use the same style checking everywhere
Both the run_tests.sh and tox.ini using the same check_source.sh for
style and basic lint testing.
Adding a pyflakes based unused import test.
Removing 2 unused imports from
tempest/tests/network/test_network_basic_ops.py.
Change-Id: I5b4c8b945495751ac68fc64ed5ebf1cf441a5a31
diff --git a/run_tests.sh b/run_tests.sh
index 93edfaf..3f394e3 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -95,14 +95,7 @@
function run_pep8 {
echo "Running pep8 ..."
- srcfiles="`find tempest -type f -name "*.py"`"
- srcfiles+=" `find tools -type f -name "*.py"`"
- srcfiles+=" `find stress -type f -name "*.py"`"
- srcfiles+=" setup.py"
-
- ignore='--ignore=E121,E122,E125,E126'
-
- ${wrapper} python tools/hacking.py ${ignore} ${srcfiles}
+ ${wrapper} tools/check_source.sh
}
function run_coverage_start {