Skip to content

fix: commit issues in ruff and black #14

fix: commit issues in ruff and black

fix: commit issues in ruff and black #14

Workflow file for this run

name: Ruff check and auto-fix
on: push
permissions:
contents: write # Allows auto-fix commits to be made
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v2
- uses: chartboost/ruff-action@v1
with:
args: check --fix --show-fixes --output-format=github
src: tool
continue-on-error: true
- name: commit changes
if: steps.ruff.outcome != 'success'
run: |
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git commit -am "style: lint Python code with Ruff"
git push