Skip to content

Commit

Permalink
fix format_exercises to emit error on non-formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Dec 1, 2024
1 parent 4fce42a commit 1542782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
scarb-version: "2.8.2"

- name: Format
run: ./bin/format_exercises.sh
run: ./bin/format_exercises.sh --check

- name: Diff
run: |
Expand Down
2 changes: 1 addition & 1 deletion bin/format_exercises.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for exercise_dir in $exercises; do
# move the solution file into the package
cp "$solution_file" "$tmp_file"

scarb fmt
scarb fmt "$@"

# move the solution file back
cp "$tmp_file" "$solution_file"
Expand Down

0 comments on commit 1542782

Please sign in to comment.