Files
railbird-gql/bin/assert-no-changes.sh
Ivan Malison bde669a608 fix: Run black on protobuf Python files in CI check
The assert-no-changes.sh script was missing black formatting for
the generated Python protobuf files, causing CI to fail after
commit aa9c561 applied black formatting to those files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 11:42:44 -08:00

19 lines
489 B
Bash
Executable File

#!/usr/bin/env bash
git ls-files | xargs md5sum > before.txt
yarn install
yarn graphql-codegen
prettier ./src --write
for proto in $(find ./rbproto -iname '*.proto'); do
name=$(basename "$proto" .proto)
protoc -I=./rbproto --python_out=./rbproto/python --pyi_out=./rbproto/python ./rbproto/shot.proto
yarn pbjs ./rbproto/shot.proto --ts ./rbproto/ts/shot.ts
done
black rbproto/python
prettier ./rbproto --write
git ls-files | xargs md5sum > after.txt
diff before.txt after.txt