Skip to content

Commit

Permalink
Add pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlacinski committed Sep 20, 2024
1 parent 56409f6 commit 44dfa97
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pre-Commit Checks

on:
pull_request:
push:
branches: [main, dev]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python -m pip install pre-commit
shell: bash
- run: python -m pip freeze --local
shell: bash
- run: pre-commit run --show-diff-on-failure --color=always
shell: bash

0 comments on commit 44dfa97

Please sign in to comment.