summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2017-07-15 16:58:08 +0000
committerAkihiro Motoki <amotoki@gmail.com>2017-08-17 06:55:00 +0000
commitf3bbf52b3c7e731796aaf38294d08109859babe5 (patch)
treea73c02ce01812683f538a084c2cfeb486229a9d2 /tox.ini
parent53bea90a75774cb7468884da43b55381b491dc46 (diff)
downloadpython-openstackclient-f3bbf52b3c7e731796aaf38294d08109859babe5.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: I12b596820727aeeb379bee16c2bc993dee9eb637
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 0f22650a..68b01b45 100644
--- a/tox.ini
+++ b/tox.ini
@@ -91,3 +91,4 @@ exclude = .git,.tox,dist,doc,*lib/python*,*egg,build,tools
# If 'ignore' is not set there are default errors and warnings that are set
# Doc: http://flake8.readthedocs.org/en/latest/config.html#default
ignore = __
+import-order-style = pep8