summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-10 12:18:18 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-10 12:18:18 +0300
commit350d0bc7b07a85ebaa7c9d94dffcfd4f08742902 (patch)
tree66a40586c61af33e91ecdafe786ec8c2b49fe3e2
parent1f894460941524e87dae56d4c1d1426a550f7dc0 (diff)
downloadick-contractor-350d0bc7b07a85ebaa7c9d94dffcfd4f08742902.tar.gz
test: run black in check mode as part of ./check
Life is too short to format code by hand.
-rwxr-xr-xcheck2
1 files changed, 2 insertions, 0 deletions
diff --git a/check b/check
index 4e4f4d0..cde86a6 100755
--- a/check
+++ b/check
@@ -2,4 +2,6 @@
set -eu
+rm -f test.py
+black --check contractor *.py
CONTRACTOR_ADDRESS="$1" sp-codegen contractor.md -o test.py --run