Repository navigation
Adopt Ruff, target Python 3.13, add type hints #1
This file contains hidden or 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: Code Formatting | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| jobs: | |
| ci: | |
| runs-on: 'ubuntu-latest' | |
| name: PR Formatter | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Lint and format with Ruff | |
| run: | | |
| uvx ruff check --fix . | |
| uvx ruff format . | |
| - name: Check-in updated code | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| default_author: github_actions | |
| committer_name: GitHub Actions | |
| committer_email: actions@github.com | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |