summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorCao Xuan Hoang <hoangcx@vn.fujitsu.com>2017-07-06 09:05:14 +0700
committerCao Xuan Hoang <hoangcx@vn.fujitsu.com>2017-07-06 16:47:49 +0700
commitf4c0468b3667f4a967e2a0402c0f49dcca55e29f (patch)
tree9388a1b8e259aaf1695b7cd968e85be213a6557a /tox.ini
parent53e55938d97a4a26be218b709d32a1a251328225 (diff)
downloadpython-neutronclient-f4c0468b3667f4a967e2a0402c0f49dcca55e29f.tar.gz
Use flake8-import-order plugin
In reviews we usually check import grouping but it is boring. By using flake8-import-order plugin, we can avoid this. It enforces loose checking so it sounds good to use it. This flake8 plugin is already used in tempest. Note that flake8-import-order version is pinned to avoid unexpected breakage of pep8 job. Setup for unit tests of hacking rules is tweaked to disable flake8-import-order checks. This extension assumes an actual file exists and causes hacking rule unit tests. Change-Id: I61e683ab0119e4ae90b7107f0690528d789e3875
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 5876124..23fda50 100644
--- a/tox.ini
+++ b/tox.ini
@@ -55,5 +55,7 @@ commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenote
[flake8]
show-source = true
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
+import-order-style = pep8
+
# H904: Delay string interpolations at logging calls
enable-extensions=H904