chore: Skip protobuf generation if no .proto files exist

This commit is contained in:
Alex Cheema
2025-06-29 21:52:46 +01:00
parent 38dcf698eb
commit 784f0ec423

View File

@@ -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/*