Skip to main content

Always run ruff --fix with pyfmt

ID
874d7be
date
2025-05-17 18:43:05+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
556ac3b
message
Always run `ruff --fix` with `pyfmt`
changed files
1 file, 2 additions, 8 deletions

Changed files

python/pyfmt (1110) → python/pyfmt (1005)

diff --git a/python/pyfmt b/python/pyfmt
index 3d9c36f..aeeed2e 100755
--- a/python/pyfmt
+++ b/python/pyfmt
@@ -40,14 +40,8 @@ else
 fi
 
 
-if [[ "${1:-}" == "--fix" ]]
-then
-  print_info "-> ruff check --fix"
-  bash -c "$RUFF check $ROOT --fix"
-else
-  print_info "-> ruff check"
-  bash -c "$RUFF check $ROOT"
-fi
+print_info "-> ruff check --fix"
+bash -c "$RUFF check $ROOT --fix"
 
 echo ""