Skip to content

Commit

Permalink
ci: Set up workflow to run pre-commit on the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelt14 committed Aug 16, 2024
1 parent 76985ef commit 80ddc55
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Run pre-commit
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
publish-test-results:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run pre-commit
run: poetry run pre-commit run --all-files

0 comments on commit 80ddc55

Please sign in to comment.