From de15af129c5101488350b4b5d0c237f7120daaf3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Apr 2026 14:38:59 +0000 Subject: [PATCH 1/2] [Automated Commit] Format Codebase --- tools/submission/submission_checker/constants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/submission/submission_checker/constants.py b/tools/submission/submission_checker/constants.py index dc45cd83d2..2f4abd87f8 100644 --- a/tools/submission/submission_checker/constants.py +++ b/tools/submission/submission_checker/constants.py @@ -1132,12 +1132,12 @@ "84", "59", "12", - "31", + "31", "86", - "122", - "233", + "122", + "233", "96", - ] + ] }, } } From d9d9dfe3576d3d2c1ccc31da1db973b9f386cd5f Mon Sep 17 00:00:00 2001 From: Arav Agarwal Date: Mon, 6 Apr 2026 11:57:24 -0400 Subject: [PATCH 2/2] Add shellcheck to formatting action --- .github/workflows/format.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index cc5113a052..7de4045f60 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -51,6 +51,24 @@ jobs: fi done + + - name: Format modified shell scripts + env: + filter: ${{ github.event.before }} + run: | + sudo apt-get update + sudo apt-get install -y shellcheck shfmt + for FILE in $(git diff --name-only $filter | grep -E '.*\.(sh)$') + do + # Check if the file still exists in the working tree + if [ -f "$FILE" ]; then + shellcheck --format=diff "$FILE" | patch -p1 "$FILE" + shfmt -w "$FILE" + git add $FILE + fi + done + + - name: Commit and push changes run: | HAS_CHANGES=$(git diff --staged --name-only)