.github/workflows/pre-commit.yaml
name: pre-commit
on:
workflow_call:
workflow_dispatch: # to trigger manually
jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Run pre-commit
uses: pre-commit/action@v3.0.1