From 7604b9611f6b765bed3c65995c5277225a85ca56 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 6 Nov 2021 02:39:38 -0400 Subject: [PATCH] Add black formatter to project root --- format | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 format diff --git a/format b/format new file mode 100755 index 00000000..00f09504 --- /dev/null +++ b/format @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +if ! which black &>/dev/null; then + echo "Black is required to format this project" + exit 1 +fi + +black . +ret=$? +if [[ $ret -eq 0 ]]; then + echo "Successfully formatted project!" +fi +exit $ret