diff --git a/justfile b/justfile index a2fe657a..f86e0734 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,11 @@ regenerate-protobufs: - protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types --pyi_out=shared/protobufs/types shared/protobufs/schemas/*.proto - uv run ruff format ./shared/protobufs/types + #!/usr/bin/env bash + if [ -f shared/protobufs/schemas/*.proto ]; then + protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types --pyi_out=shared/protobufs/types shared/protobufs/schemas/*.proto + uv run ruff format ./shared/protobufs/types + else + echo "No .proto files found in shared/protobufs/schemas/" + fi fmt: uv run ruff format master worker shared engines/*