From 5c9ce0ba4cadabdc954868fd9d02cc43284599e1 Mon Sep 17 00:00:00 2001 From: Adam Taranto Date: Thu, 26 Dec 2024 10:57:52 +1100 Subject: [PATCH] Use Black instead --- .github/workflows/{ruff.yml => Black.yml} | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename .github/workflows/{ruff.yml => Black.yml} (77%) diff --git a/.github/workflows/ruff.yml b/.github/workflows/Black.yml similarity index 77% rename from .github/workflows/ruff.yml rename to .github/workflows/Black.yml index f807cfaf..0d589ba6 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/Black.yml @@ -1,7 +1,7 @@ -name: Ruff Formatting +name: Black Formatting on: [pull_request] jobs: - ruff: + black: if: ${{ github.actor != 'dependabot[bot]' }} # Do not run on commits created by dependabot runs-on: ubuntu-latest permissions: @@ -13,11 +13,10 @@ jobs: with: ref: ${{ github.sha }} token: ${{ secrets.GITHUB_TOKEN }} - - uses: chartboost/ruff-action@v1 + - uses: psf/black@stable with: - src: './jcvi ./tests' - args: 'format --target-version py310' + path: "./jcvi ./tests" - uses: stefanzweifel/git-auto-commit-action@v5 id: auto-commit-action with: - commit_message: 'Style fixes by Ruff' \ No newline at end of file + commit_message: 'Style fixes by Black' \ No newline at end of file