Skip to content

Commit

Permalink
Add pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sternakt committed Jan 3, 2025
1 parent 8bf2ee9 commit 9fa18b8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pre-commit Checks

on:
push:
branches:
- main
- '**' # Runs on all branches
pull_request:

jobs:
pre-commit:
name: Run Pre-commit Hooks
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run pre-commit
run: |
pre-commit install
pre-commit run --all-files

0 comments on commit 9fa18b8

Please sign in to comment.