Lint with uvx ruff instead of a full uv project sync #16
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: Lint | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "main" | |
| permissions: {} | |
| jobs: | |
| ruff: | |
| name: "Ruff" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 | |
| with: | |
| enable-cache: true | |
| # Run only ruff (pinned to match pyproject.toml/.pre-commit). The lint job | |
| # doesn't import the project, so avoid a full `uv run` project sync. | |
| - name: Lint | |
| run: uvx ruff@0.14.9 check . | |
| - name: Format | |
| run: uvx ruff@0.14.9 format . --check |