Download mcp/.github/workflows/pre-commit.yml from Can1178/tavily_cache: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/datasets/Can1178/tavily_cache/resolve/main/mcp/.github/workflows/pre-commit.yml
- Command line
-
hf download hf://datasets/Can1178/tavily_cache/mcp/.github/workflows/pre-commit.yml
-
curl -L -o pre-commit.yml https://huggingface.co/datasets/Can1178/tavily_cache/resolve/main/mcp/.github/workflows/pre-commit.yml
1.06 kB
| name: Pre-commit | |
| on: [ push, pull_request ] | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: True | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| env: | |
| OS: ${{ matrix.os }} | |
| PYTHON: '3.10' | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Setup Python | |
| uses: actions/setup-python@master | |
| with: | |
| python-version: '3.10' | |
| - name: Update setuptools | |
| run: | | |
| pip install -U setuptools wheel | |
| - name: Install | |
| run: | | |
| pip install -q -e .[dev] | |
| - name: Install pre-commit | |
| run: | | |
| pre-commit install | |
| - name: Pre-commit starts | |
| run: | | |
| pre-commit run --all-files > pre-commit.log 2>&1 || true | |
| cat pre-commit.log | |
| if grep -q Failed pre-commit.log; then | |
| echo -e "\e[41m [**FAIL**] Please install pre-commit and format your code first. \e[0m" | |
| exit 1 | |
| fi | |
| echo -e "\e[46m ********************************Passed******************************** \e[0m" |