Skip to content

Merge pull request #328 from aliqb/roo_label #117

Merge pull request #328 from aliqb/roo_label

Merge pull request #328 from aliqb/roo_label #117

Workflow file for this run

name: Run lints
on:
workflow_dispatch:
push:
paths: ["**.py"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v3
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**/*.py
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install ruff
run: pip install ruff
- name: Ruff check
run: ruff check ${{ steps.changed-files.outputs.all_changed_files }}
- name: Push back changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "fix auto-fixable linting errors"
commit_user_name: "linter-bot"
commit_user_email: "linter-bot@users.noreply.github.com"