Changeset - 5698307382de
[Not reviewed]
default
0 2 0
Mads Kiilerich (mads) - 7 years ago 2019-08-07 00:22:56
mads@kiilerich.com
scripts: introduce import cleanup using isort
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
dev_requirements.txt
Show inline comments
 
@@ -6,3 +6,4 @@ pytest-localserver < 0.6
 
mock < 3.1
 
Sphinx < 1.9
 
WebTest < 2.1
 
isort == 4.3.21
scripts/whitespacecleanup.sh
Show inline comments
 
@@ -17,4 +17,7 @@ sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2
 
hg mani | xargs chmod -x
 
hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x
 

	
 
# isort is installed from dev_requirements.txt
 
isort --line-width 160 --wrap-length 160 --lines-after-imports 2 `hg loc '*.py'`
 

	
 
hg diff
0 comments (0 inline, 0 general)