Spaces:
Running
Running
Download .github/workflows/pre-commit.yaml from XiangJinYu/SPO: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/spaces/XiangJinYu/SPO/resolve/main/.github/workflows/pre-commit.yaml
- Command line
-
hf download hf://spaces/XiangJinYu/SPO/.github/workflows/pre-commit.yaml
-
curl -L -o pre-commit.yaml https://huggingface.co/spaces/XiangJinYu/SPO/resolve/main/.github/workflows/pre-commit.yaml
606 Bytes
| name: Pre-commit checks | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| pre-commit-check: | |
| runs-on: ubuntu-latest | |
| environment: pre-commit | |
| steps: | |
| - name: Checkout Source Code | |
| uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9.17' | |
| - name: Install pre-commit | |
| run: pip install pre-commit | |
| - name: Initialize pre-commit | |
| run: pre-commit install | |
| - name: Run pre-commit hooks | |
| run: pre-commit run --all-files |