comparison scripts/whitespacecleanup.sh @ 8287:abb83e4edfd9

scripts: run isort on scripts too
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 06 Mar 2020 19:37:10 +0100
parents 0288dd052033
children 5b1f43027662
comparison
equal deleted inserted replaced
8286:4aa6a17afc49 8287:abb83e4edfd9
16 16
17 hg mani | xargs chmod -x 17 hg mani | xargs chmod -x
18 hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x 18 hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x
19 19
20 # isort is installed from dev_requirements.txt 20 # isort is installed from dev_requirements.txt
21 isort --line-width 160 --wrap-length 160 --lines-after-imports 2 `hg loc '*.py'` 21 hg loc 'set:!binary()&grep("^#!.*python")' '*.py' | xargs isort --line-width 160 --wrap-length 160 --lines-after-imports 2
22 22
23 hg diff 23 hg diff