Apply isort on repository
authorFrançois Freitag <redacted>
Sat, 2 Dec 2017 21:26:45 +0000 (13:26 -0800)
committerFrançois Freitag <redacted>
Sat, 20 Jan 2018 21:51:31 +0000 (13:51 -0800)
Imports are easier to follow if there they are sorted alphabetically,
and grouped by:

- __future__,
- stdlib,
- third party,
- current project,
- local imports.

examples/example_import.py
examples/example_json.py
examples/example_postprocess.py
setup.py
tests/test_xkcdpass.py
xkcdpass/xkcd_password.py

index cb8282db52687f1d29a567f40e2164000aa660af..55e2320994e22fb95513ea0b2abf8cabb04531aa 100644 (file)
@@ -1,6 +1,7 @@
-import xkcdpass.xkcd_password as xp
 import random
 
+import xkcdpass.xkcd_password as xp
+
 
 def random_capitalisation(s, chance):
     new_str = []
index 4f22fe5cec7a98b343211e75a155ebc12ee6cb3d..d3ad9f66f66e9d4489e8410e5943e0497437ed7d 100644 (file)
@@ -1,4 +1,5 @@
 from xkcdpass import xkcd_password as xp
+
 from django.http import JsonResponse
 
 
index 62fe7b68903f46cc76abcee44d4f41c39f6ba524..069fb6ed05d6e53ee3844625cc8a4c489f2bec6c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
-import sys
 import fileinput
 import random
+import sys
 
 # generate a list of symbols via ascii code
 SYMBOLS = [str(unichr(i)) for i in range(33, 65)]
index 4154dad078d714c1991b25385923ee688ac67568..5c37dc91c3bb76f45d4c87f08045d27da0b13d18 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,5 @@
 from setuptools import setup
 
-
 setup(
     name='xkcdpass',
     version='1.14.3',
index 70aad5f35116a4b18cd57d18b289bd73b5e042da..c21e6602cf7479c5e7c9a5b3bebd2f72a5239ccf 100644 (file)
@@ -1,11 +1,10 @@
 import re
-import sys
 import subprocess
+import sys
 import unittest
 
 from xkcdpass import xkcd_password
 
-
 WORDFILE = 'xkcdpass/static/legacy'
 
 
index b9a03b7848fa060de68a1f86f9d79dbeedac8b7e..f30cbd30abf94fe41e021d0aa7bca7e034432983 100755 (executable)
@@ -1,12 +1,12 @@
 #!/usr/bin/env python
 # encoding: utf-8
 
-import random
+import argparse
+import math
 import os
 import os.path
-import argparse
+import random
 import re
-import math
 import sys
 
 __LICENSE__ = """
git clone https://git.99rst.org/PROJECT