Skip to content

Migrate to pre-commit #4

Migrate to pre-commit

Migrate to pre-commit #4

Workflow file for this run

name: pre-commit
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
with:
# requites to grab the history of the PR
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.1
with:
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}