From 49c9980b09b74fc6bb606322e6b105060f14a0fd Mon Sep 17 00:00:00 2001 From: richard-dds Date: Thu, 23 Aug 2018 16:24:29 -0400 Subject: [PATCH] Add script/format --- script/format | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 script/format diff --git a/script/format b/script/format new file mode 100755 index 00000000..842b9c3a --- /dev/null +++ b/script/format @@ -0,0 +1,9 @@ +#!/bin/bash + +FILES_TO_FORMAT="atst/ tests/ app.py" + +if [ $1 == "check" ]; then + black --check -q ${FILES_TO_FORMAT} +else + black ${FILES_TO_FORMAT} +fi