# HG changeset patch # User Mads Kiilerich # Date 1583519830 -3600 # Node ID abb83e4edfd90eeaeff9a347e95dd580831c8233 # Parent 4aa6a17afc498cc888860699428e540387b28243 scripts: run isort on scripts too diff -r 4aa6a17afc49 -r abb83e4edfd9 scripts/pyflakes --- a/scripts/pyflakes Sun Mar 01 21:40:32 2020 +0100 +++ b/scripts/pyflakes Fri Mar 06 19:37:10 2020 +0100 @@ -5,9 +5,11 @@ """ import sys + import pyflakes.api import pyflakes.messages + class Reporter: warned = False diff -r 4aa6a17afc49 -r abb83e4edfd9 scripts/whitespacecleanup.sh --- a/scripts/whitespacecleanup.sh Sun Mar 01 21:40:32 2020 +0100 +++ b/scripts/whitespacecleanup.sh Fri Mar 06 19:37:10 2020 +0100 @@ -18,6 +18,6 @@ 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 loc 'set:!binary()&grep("^#!.*python")' '*.py' | xargs isort --line-width 160 --wrap-length 160 --lines-after-imports 2 hg diff