Skip to content

πŸš‡βœ¨ Add pre-commit CI pipeline #10

πŸš‡βœ¨ Add pre-commit CI pipeline

πŸš‡βœ¨ Add pre-commit CI pipeline #10

Workflow file for this run

name: 🧹 Pre-Commit
on:
push:
tags:
- v**
branches-ignore:
- "dependabot/**"
- "sourcery/**"
- "pre-commit-ci-update-config"
pull_request:
jobs:
pre-commit:
name: 🧹 Pre-commit
runs-on: ubuntu-latest
steps:
- name: ⏬ Check out repo
uses: actions/checkout@v4
- name: 🐍 Set up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: ".pre-commit-config.yaml"
cache-local-path: /tmp/uv-pa-cache
cache-suffix: uv-pre-commit
- name: πŸ§°πŸƒβ€β™‚οΈ Run pre-commit
env:
PRE_COMMIT_HOME: /tmp/uv-pa-cache/pa-envs
run: |
uvx -p 3.13 --with pre-commit-uv pre-commit run --show-diff-on-failure --color=always -a