Files
SQLModel-CRUD-manager/.github/workflows/linter.yml
Edkar Chachati 0db31bad50 Initial commit
2023-12-22 16:51:05 -04:00

25 lines
862 B
YAML

name: Ruff
on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- uses: actions/checkout@v3
#----------------------------------------------
# execute format with ruff
#----------------------------------------------
- uses: chartboost/ruff-action@v1
with:
args: check --fix-only --unsafe-fixes --show-fixes
#----------------------------------------------
# save ruff changes
#----------------------------------------------
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Ruff Action -> Fixing linting errors