Browse Source

Add isort (and sort setup.py)

David Cramer 9 years ago
parent
commit
45d88e6489
2 changed files with 17 additions and 9 deletions
  1. 8 0
      .isort.cfg
  2. 9 9
      setup.py

+ 8 - 0
.isort.cfg

@@ -0,0 +1,8 @@
+[settings]
+line_length=80
+known_first_party=sentry
+indent='    '
+multi_line_output=5
+length_sort=1
+lines_between_sections=1
+skip=setup.py

+ 9 - 9
setup.py

@@ -30,21 +30,20 @@ if sys.version_info[:2] < (2, 7):
     print 'Error: Sentry requires Python 2.7'
     sys.exit(1)
 
-import datetime
-import json
 import os
+import json
+import shutil
 import os.path
+import datetime
 import traceback
-import shutil
-
 from distutils import log
-from distutils.command.build import build as BuildCommand
+from subprocess import check_output
 from distutils.core import Command
+from distutils.command.build import build as BuildCommand
+
+from setuptools import setup, find_packages
 from setuptools.command.sdist import sdist as SDistCommand
 from setuptools.command.develop import develop as DevelopCommand
-from setuptools import setup, find_packages
-from subprocess import check_output
-
 
 # The version of sentry
 VERSION = '8.1.0.dev0'
@@ -68,8 +67,9 @@ ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
 IS_LIGHT_BUILD = os.environ.get('SENTRY_LIGHT_BUILD') == '1'
 
 dev_requires = [
-    'flake8>=2.0,<2.1',
     'Babel',
+    'flake8>=2.0,<2.1',
+    'isort>=4.2.2,<4.3.0',
 ]
 
 tests_require = [