Skip to content

Commit

Permalink
Use Black instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamtaranto committed Dec 25, 2024
1 parent b9d1e72 commit 5c9ce0b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ruff.yml → .github/workflows/Black.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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'
commit_message: 'Style fixes by Black'

0 comments on commit 5c9ce0b

Please sign in to comment.