Use flake8-import-order

Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: Ia3d81bbbb44b40804b3268c0e648276a36cb4805
This commit is contained in:
John L. Villalovos
2017-02-17 11:26:41 -08:00
parent 5cf6bbf374
commit 66866b3ce6
25 changed files with 35 additions and 22 deletions
+1
View File
@@ -157,6 +157,7 @@ commands = bash -c tools/releasenotes_tox.sh
enable-extensions = H106,H203,H904
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools/xenserver*,releasenotes
import-order-style = pep8
# To get a list of functions that are more complex than 25, set max-complexity
# to 25 and run 'tox -epep8'.
# 34 is currently the most complex thing we have