[Workflow] Automatically Lint and Format PRs #3
Workflow file for this run
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 | |
on: pull_request | |
jobs: | |
lint: | |
name: Lint, Format, and Commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
name: Lint | |
with: | |
version: 0.3.5 | |
args: "check --output-format=full --statistics" | |
- uses: chartboost/ruff-action@v1 | |
name: Format | |
with: | |
version: 0.3.5 | |
args: "format --check" | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "lint fixes and formatting by ruff" |