summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-06-02 16:58:53 -0500
committerEric Harney <eharney@redhat.com>2021-03-10 15:04:27 -0500
commit82f0ceb724e93ccf22140762c65da88c9c2f4bb4 (patch)
tree1e6c3efb8abadfa6f0fdb4f3df568193ad79fdba /tools
parent7a0d07c16d20fcb1e12368aa0ec20e2f53130f3a (diff)
downloadpython-cinderclient-82f0ceb724e93ccf22140762c65da88c9c2f4bb4.tar.gz
Add flake8-import-order extension
This adds the import order extension to match what we have in the cinder repo. This is a linting extension that will check that imports are in the correct order and the correct grouping so they automatically get flagged, and it won't be whether reviewers notice and decide to do anything or not. Cinder change was Ic13ba238a4a45c6219f4de131cfe0366219d722f for a little more wordy reasoning. Also includes updates for noqa tags. Newer version of the linters appear to want these on the function definition line, not on the decorator line. Change-Id: Ibf3f3afbf3bb6ec6613b35f91d4a353c6a391f41 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/colorizer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py
index 2a667b4..cf89535 100755
--- a/tools/colorizer.py
+++ b/tools/colorizer.py
@@ -42,10 +42,10 @@
"""Display a subunit stream through a colorized unittest test runner."""
import heapq
-import subunit
import sys
import unittest
+import subunit
import testtools