diff --git a/tasks.py b/tasks.py index 364a420a..9f30b90e 100644 --- a/tasks.py +++ b/tasks.py @@ -495,9 +495,10 @@ def pre_push(c: Any) -> None: if not ret: LOG.warning("Run `terraform fmt -recursive` locally to fix formatting") sys.exit(1) - cmd = "nix fmt" + cmd = "alejandra --check ." ret = exec_cmd(cmd, raise_on_error=False) if not ret: + LOG.warning("Run `nix fmt` locally to fix formatting") sys.exit(1) cmd = "nix flake check -v" ret = exec_cmd(cmd, raise_on_error=False)