Spaces:
Running on Zero
Running on Zero
Download .github/workflows/format.yml from Realcat/image-matching-webui: direct link, hf CLI and curl.
- Browser
- Download file 781 Bytes
-
https://huggingface.co/spaces/Realcat/image-matching-webui/resolve/refs%2Fpr%2F2/.github/workflows/format.yml
- Command line
-
hf download hf://spaces/Realcat/image-matching-webui@refs/pr/2/.github/workflows/format.yml
-
curl -L -o format.yml https://huggingface.co/spaces/Realcat/image-matching-webui/resolve/refs%2Fpr%2F2/.github/workflows/format.yml
781 Bytes
| name: Format and Lint Checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '*.py' | |
| pull_request: | |
| types: [ assigned, opened, synchronize, reopened ] | |
| jobs: | |
| check: | |
| name: Format and Lint Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| - run: python -m pip install --upgrade pip | |
| - run: python -m pip install .[dev] | |
| - run: python -m flake8 ui/*.py hloc/*.py hloc/matchers/*.py hloc/extractors/*.py | |
| - run: python -m isort ui/*.py hloc/*.py hloc/matchers/*.py hloc/extractors/*.py --check-only --diff | |
| - run: python -m black ui/*.py hloc/*.py hloc/matchers/*.py hloc/extractors/*.py --check --diff |