From cee5b066043090beb897e8ddcbc5bb6b4d1ee7db Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 27 Aug 2023 20:20:32 -0700 Subject: [PATCH] 'just push' command pushes to git only if test/lint passes --- Justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Justfile b/Justfile index a6399b1..178a673 100644 --- a/Justfile +++ b/Justfile @@ -40,3 +40,7 @@ @fix: cog pipenv run ruff . --fix pipenv run black . + +# Push commit if tests pass +@push: test lint + git push