31 lines
505 B
YAML
31 lines
505 B
YAML
|
|
name: Pre-commit
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ main, develop ]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
name: Run Pre-commit Hooks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Install pre-commit
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pre-commit
|
|
|
|
- name: Run pre-commit
|
|
run: |
|
|
pre-commit run --all-files
|
|
|