Spaces:
Sleeping
Sleeping
Download .github/workflows/python-lint.yml from HighFive52/ml-api: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/HighFive52/ml-api/resolve/main/.github/workflows/python-lint.yml
- Command line
-
hf download hf://spaces/HighFive52/ml-api/.github/workflows/python-lint.yml
-
curl -L -o python-lint.yml https://huggingface.co/spaces/HighFive52/ml-api/resolve/main/.github/workflows/python-lint.yml
574 Bytes
| name: Python Lint | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install Black | |
| run: python -m pip install black==26.1.0 | |
| - name: Run Black | |
| run: black --check . |