👷 Add pre-commit config with local script for permalinks (#14398)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Sebastián Ramírez
2025-11-23 09:41:43 -08:00
committed by GitHub
parent 79bc4b9ca0
commit 4f3ff79736
5 changed files with 37 additions and 13 deletions

View File

@@ -7,7 +7,6 @@ on:
- synchronize
env:
UV_SYSTEM_PYTHON: 1
IS_FORK: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
jobs:
@@ -41,6 +40,10 @@ jobs:
requirements**.txt
pyproject.toml
uv.lock
- name: Install Dependencies
run: |
uv venv
uv pip install -r requirements.txt
- name: Run pre-commit
id: precommit
run: |
@@ -69,7 +72,7 @@ jobs:
run: exit 1
# https://github.com/marketplace/actions/alls-green#why
alls-green: # This job does nothing and is only used for the branch protection
pre-commit-alls-green: # This job does nothing and is only used for the branch protection
if: always()
needs:
- pre-commit