Skip to content

Commit

Permalink
Add isort Fabric task
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Jun 10, 2015
1 parent 9dfc713 commit 88acf02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ def style():
'--max-complexity=9 .')


@task
def isort():
"""Use isort to automatically (re-)order the import statements on the top of files"""
with lcd(_relative_to_fabfile()):
local('isort **/*.py')


@task
def clean():
"""Remove all generated files (.pyc, .coverage, .egg, etc)."""
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ arrow
Fabric
flake8
grin
isort
wheel
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ argparse==1.3.0 # via grin
arrow==0.5.4
click==4.0
ecdsa==0.13 # via paramiko
enum34==1.0.4 # via pies
fabric==1.10.1
flake8==2.4.1
flask==0.10.1
grin==1.2.1
ipaddress==1.0.7 # via pies2overrides
isort==3.9.6
itsdangerous==0.24 # via flask
jinja2==2.7.3 # via flask
markupsafe==0.23 # via jinja2
mccabe==0.3 # via flake8
natsort==4.0.1 # via isort
paramiko==1.15.2 # via fabric
pep8==1.5.7 # via flake8
pies2overrides==2.6.5 # via pies
pies==2.6.5 # via isort
pycrypto==2.6.1 # via paramiko
pyflakes==0.8.1 # via flake8
python-dateutil==2.4.2 # via arrow
Expand Down

0 comments on commit 88acf02

Please sign in to comment.