Skip to content

Commit

Permalink
ci: exclude generated protobuf file from rustfmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Dec 29, 2024
1 parent e6251ca commit 3aba7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/check-style
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} HEAD | grep
exit 1
fi

RUST_SOURCES=$(git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} HEAD | grep -E "^src/rust.*\.rs\$" | grep -v -E "^src/rust/vendor" || true)
RUST_SOURCES=$(git --no-pager diff --diff-filter=d --name-only ${TARGET_BRANCH} HEAD | grep -E "^src/rust.*\.rs\$" | grep -v -E "^src/rust/vendor" | grep -v "^src/rust/bitbox02-rust/src/shiftcrypto\.bitbox02\.rs$" || true)
if [ -n "$RUST_SOURCES" ] ; then
echo $RUST_SOURCES
"$RUSTFMT" --check $RUST_SOURCES
Expand Down

0 comments on commit 3aba7b3

Please sign in to comment.