Configure ruff and UV #25
Workflow file for this run
This file contains 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
on: | |
pull_request: | |
branches: [main, master] | |
push: | |
branches: [main, master] | |
name: lint | |
env: | |
PYTHONUNBUFFERED: "1" | |
UV_SYSTEM_PYTHON: 1 | |
jobs: | |
lint-ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: pyproject.toml | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: pyproject.toml | |
- name: Install dependencies | |
run: uv pip install . ruff | |
- name: Lint with ruff | |
run: ruff check --output-format=github . |