Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.

refactor: update docstrings #45

refactor: update docstrings

refactor: update docstrings #45

Workflow file for this run

name: Format code
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
format:
name: Format code
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install UV
uses: astral-sh/setup-uv@v6
- name: Run Ruff
run: uvx ruff format
- name: Check for changes
id: verify-changed-files
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.verify-changed-files.outputs.changed == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "refactor: format code"
git push