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/tox.ini b/tox.ini
index 92ce6bc..85a0d86 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,4 +19,4 @@
python -m tools/tempest_coverage -c report --html
[testenv:pep8]
-commands = python tools/hacking.py --ignore=E122,E125,E126 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack,*egg .
+commands = bash tools/check_source.sh