From 91606de88e10d7688833895a357ad20d83416d74 Mon Sep 17 00:00:00 2001 From: Matt Archer Date: Fri, 8 Nov 2024 11:49:37 +0000 Subject: [PATCH] Add basic formatting workflow --- .github/workflows/formatting.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..de6b025 --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,21 @@ +name: Formatting +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + formatting: + runs-on: ubuntu-latest + name: Code Formatting and Trailing Whitespace Check + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Run Ruff for code formatting check + uses: astral-sh/ruff-action@v1 + with: + args: "format --check"