Skip to content

Commit

Permalink
🔧 Implement Ruff as check instead of Black creating a commit
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Sep 17, 2024
1 parent 9e954c8 commit c675e14
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/format-python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Format Python
name: Ensure formatted code
on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]
Expand All @@ -11,13 +11,6 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Format code with black
run: |
pip install black
black --line-length 120 .
- name: Commit changes
uses: EndBug/add-and-commit@v9
- uses: chartboost/ruff-action@v1
with:
default_author: github_actions
message: "Formatted code with black --line-length 120"
add: "."
changed-files: 'true'

0 comments on commit c675e14

Please sign in to comment.