ci: Add GitHub workflow to enforce pre-commit checks on main branch

This commit is contained in:
Andreas Koepf (aider) 2025-01-30 23:58:43 +01:00
parent a577f7cdf6
commit cb8d372912

15
.github/workflows/pre-commit.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: Pre-commit
on:
pull_request:
branches: [ main ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0