From d4332fda607df74d834a518553d02db3e2185123 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 7 Aug 2024 10:32:31 -0700 Subject: [PATCH 1/2] ci: add GitHub Actions workflow for Ruff --- .github/workflows/ruff.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 00000000..b6690e05 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,8 @@ +name: Ruff +on: [push, pull_request] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chartboost/ruff-action@v1 \ No newline at end of file From 34504dc45600ab90d8ae04db907c1c9e24034635 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 7 Aug 2024 10:34:18 -0700 Subject: [PATCH 2/2] chore: update ruff-action arguments for code formatting check --- .github/workflows/ruff.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index b6690e05..24aadced 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -5,4 +5,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 \ No newline at end of file + - uses: chartboost/ruff-action@v1 + with: + args: 'format --check' \ No newline at end of file