Spaces:
Running
Running
Download .github/workflows/code-format-lint-check.yml from kratadata/velai-workshop: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/kratadata/velai-workshop/resolve/main/.github/workflows/code-format-lint-check.yml
- Command line
-
hf download hf://spaces/kratadata/velai-workshop/.github/workflows/code-format-lint-check.yml
-
curl -L -o code-format-lint-check.yml https://huggingface.co/spaces/kratadata/velai-workshop/resolve/main/.github/workflows/code-format-lint-check.yml
582 Bytes
| name: Code Format Lint Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| ruff: | |
| name: Ruff format + lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Sync (lint deps) | |
| run: uv sync --frozen --group lint | |
| - name: Ruff format check | |
| run: make fmt-check | |
| - name: Ruff lint | |
| run: make lint | |