Spaces:
Sleeping
Sleeping
name: Lint code with Ruff | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up uv | |
# Install a specific uv version using the installer | |
run: curl -LsSf https://astral.sh/uv/0.3.3/install.sh | sh | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Install the project | |
run: | | |
uv sync --all-extras --dev | |
- name: Lint with Ruff | |
run: | | |
uv run ruff check --output-format=github . | |
continue-on-error: true |