diff --git a/.github/workflows/format-python.yml b/.github/workflows/format-python.yml index f5f84e1..949c2c8 100644 --- a/.github/workflows/format-python.yml +++ b/.github/workflows/format-python.yml @@ -1,4 +1,4 @@ -name: Format Python +name: Ensure formatted code on: pull_request: types: [ opened, edited, reopened, synchronize, ready_for_review ] @@ -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'