Skip to content

Do format updates on top of current commit rather than head. #19

Do format updates on top of current commit rather than head.

Do format updates on top of current commit rather than head. #19

Workflow file for this run

name: Ruff Formatting
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files.
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- uses: chartboost/ruff-action@v1
with:
src: './src/python'
args: 'format --target-version py310'
- uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit-action
with:
commit_message: 'Style fixes by Ruff'