Spaces:
Sleeping
Sleeping
Download .github/workflows/pre-commit.yml from MinhDS/ProfillyBot: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/spaces/MinhDS/ProfillyBot/resolve/d6ebd7d24b11ef9b2c59e95bb1aa111b9adafb6a/.github/workflows/pre-commit.yml
- Command line
-
hf download hf://spaces/MinhDS/ProfillyBot@d6ebd7d24b11ef9b2c59e95bb1aa111b9adafb6a/.github/workflows/pre-commit.yml
-
curl -L -o pre-commit.yml https://huggingface.co/spaces/MinhDS/ProfillyBot/resolve/d6ebd7d24b11ef9b2c59e95bb1aa111b9adafb6a/.github/workflows/pre-commit.yml
845 Bytes
| name: Pre-commit Checks | |
| on: | |
| push: | |
| branches: [ main, master, develop ] | |
| pull_request: | |
| branches: [ main, master, develop ] | |
| jobs: | |
| pre-commit: | |
| name: Run Pre-commit Hooks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install pre-commit | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit | |
| - name: Cache pre-commit hooks | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
| restore-keys: | | |
| pre-commit- | |
| - name: Run pre-commit on all files | |
| run: | | |
| pre-commit run --all-files --show-diff-on-failure | |