# HG changeset patch # User drewp@bigasterisk.com # Date 2019-05-21 23:55:35 # Node ID 3f1b9b9b05058f57d5f66b20c95cecd6ec9b1999 # Parent 55e41b61b4720aa0907188875097b58f3efc34b4 add yapf tool Ignore-this: 28fe07e21ca358a97282f5316c8820e0 diff --git a/makefile b/makefile --- a/makefile +++ b/makefile @@ -56,6 +56,9 @@ mypy-collector: mypy-paint: env/bin/mypy --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py +reformat: + env/bin/yapf --verbose --parallel --in-place --style google light9/**/*.py `file --no-pad bin/* | grep 'Python script' | perl -lpe 's/:.*//'` + ### show ### darcs_show_checkpoint: diff --git a/requirements.txt b/requirements.txt --- a/requirements.txt +++ b/requirements.txt @@ -28,6 +28,7 @@ txzmq==0.8.0 typing==3.6.1 watchdog==0.8.3 webcolors==1.7 +yapf==0.27.0 git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93#egg=scales git+http://github.com/11craft/louie.git@f18bb71010c114eca9c6b88c96453340e3b39454#egg=louie