Skip to content

chore: add stale workflow to manage inactive issues/PRs (#18) #112

chore: add stale workflow to manage inactive issues/PRs (#18)

chore: add stale workflow to manage inactive issues/PRs (#18) #112

Workflow file for this run

name: Pre-commit
permissions:
contents: read
on:
pull_request:
push:
branches: [master, main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pre-commit
run: |
pre-commit run --all-files --show-diff-on-failure
- name: Run pre-commit (push only)
if: github.event_name == 'push'
run: |
pre-commit install
pre-commit run --all-files