Bump ruff from 0.11.8 to 0.14.2 #388
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache-dependency-glob: "**/pyproject.toml" | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Add venv to PATH | |
| run: echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
| - name: Run ruff linter | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: check | |
| - name: Run ruff formatter | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: format --check | |
| - name: Run pyright | |
| uses: jakebailey/pyright-action@v2 |