Skip to content

chore: modernize serialization, drop pandas, harden settings, fix rac… #300

chore: modernize serialization, drop pandas, harden settings, fix rac…

chore: modernize serialization, drop pandas, harden settings, fix rac… #300

Workflow file for this run

# Lint & auto-format Python code with Ruff on push.
# If the code is already compliant this Action does nothing; otherwise Ruff's
# fixes/formatting are committed back to the branch.
# (Replaces the previous Black-based workflow.)
name: Ruff
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [closed]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: ruff format + check
run: |
uvx ruff format .
uvx ruff check --fix .
git config --global user.name github-actions || exit 0;
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" || exit 0;
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" || exit 0;
git commit -am "style: apply ruff format/fixes" || exit 0;
git push --force origin "HEAD:$GITHUB_REF" || exit 0;