Skip to content

Update

Update #1422

## Pre-commit Workflow
# Last update: 2025-11-25
# Save this file to './.github/workflows/pre-commit-workflow.yaml'
# Name of the workflow
name: pre-commit
# Controls on when the workflow will run
on:
pull_request:
push:
branches: ['*']
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Job name
pre-commit:
# Type of machine to run the job on
runs-on: ubuntu-slim
# Sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repository content - https://github.com/actions/checkout
uses: actions/checkout@v6
- name: Setup Python - https://github.com/actions/setup-python
uses: actions/setup-python@v6
with:
python-version: '3.x' # Latest stable major version of Python
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- name: Pre-commit action - https://github.com/pre-commit/action
uses: pre-commit/action@v3.0.1