feat: add gradual reporting by default #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruff Linter | |
on: | |
push: | |
paths: | |
- '**.py' | |
pull_request: | |
paths: | |
- '**.py' | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Ruff | |
run: pip install ruff | |
- name: Run Ruff Check | |
run: ruff check . --output-format=github | |
continue-on-error: true | |
- name: Commit fixes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'style: fix code style issues with Ruff' | |
commit_user_name: 'GitHub Actions' | |
commit_user_email: '[email protected]' | |
commit_author: 'GitHub Actions <[email protected]>' |