Browse Source

Re-sort imports using isort

Signed-off-by: Aarni Koskela <akx@iki.fi>
Aarni Koskela 5 years ago
parent
commit
15d8618c58
3 changed files with 16 additions and 10 deletions
  1. 0 6
      python/.flake8
  2. 4 4
      python/labours/labours.py
  3. 12 0
      python/setup.cfg

+ 0 - 6
python/.flake8

@@ -1,6 +0,0 @@
-[flake8]
-ignore=D,B007
-max-line-length=99
-inline-quotes="
-import-order-style=appnexus
-exclude=labours/pb_pb2.py

+ 4 - 4
python/labours/labours.py

@@ -1,7 +1,11 @@
 #!/usr/bin/env python3
 import argparse
+from collections import defaultdict, namedtuple
 import contextlib
+from datetime import datetime, timedelta
+from importlib import import_module
 import io
+from itertools import chain
 import json
 import os
 import re
@@ -12,10 +16,6 @@ import tempfile
 import threading
 import time
 import warnings
-from collections import defaultdict, namedtuple
-from datetime import datetime, timedelta
-from importlib import import_module
-from itertools import chain
 
 import numpy
 import tqdm

+ 12 - 0
python/setup.cfg

@@ -0,0 +1,12 @@
+[flake8]
+exclude = labours/pb_pb2.py
+ignore = D,B007
+import-order-style = appnexus
+inline-quotes = "
+max-line-length = 99
+
+[isort]
+force_sort_within_sections = true
+line_length = 99
+lines_between_types = 0
+multi_line_output = 0