Use same flake8 extensions as Octavia
Enabled the same flake8 extensions as the Octavia tree,
fixing the bugs that they now caught.
Trivialfix
Change-Id: I0fc3f5e3a48dc9dc0286cf9b11847a77573ac411
diff --git a/tox.ini b/tox.ini
index 33b941c..4a61222 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,7 +17,7 @@
[testenv:pep8]
basepython = python3
-commands = flake8 {posargs}
+commands = flake8
[testenv:venv]
basepython = python3
@@ -74,12 +74,16 @@
commands = oslo_debug_helper {posargs}
[flake8]
-# E123, E125 skipped as they are invalid PEP-8.
-
show-source = True
-ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+import-order-style = pep8
+# [H106]: Don't put vim configuration in source files
+# [H203]: Use assertIs(Not)None to check for None
+# [H204]: Use assert(Not)Equal to check for equality
+# [H205]: Use assert(Greater|Less)(Equal) for comparison
+# [H904]: Delay string interpolations at logging calls
+enable-extensions=H106,H203,H204,H205,H904
[testenv:genconfig]
basepython = python3