mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 22:27:50 -05:00
chore: Skip protobuf generation if no .proto files exist
This commit is contained in:
9
justfile
9
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/*
|
||||
|
||||
Reference in New Issue
Block a user