Spaces:
Sleeping
Sleeping
name: Check code formatting with Black | |
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: Check formatting with Black | |
run: | | |
uv run black --check . | |
continue-on-error: true |