Skip to content

Add pre-commit plus a GItHub Action to run it #2

Add pre-commit plus a GItHub Action to run it

Add pre-commit plus a GItHub Action to run it #2

Workflow file for this run

# https://pre-commit.com
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
# Using pre-commit.ci is even better that using GitHub Actions for pre-commit.
name: pre-commit
on:
pull_request:
branches: [master]
push:
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install pre-commit
- run: pre-commit --version
- run: pre-commit run --all-files