Skip to content

Commit

Permalink
add pre-commit action, remove isort action
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 29, 2024
1 parent 74846ca commit 4923d84
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: pre-commit

on: pull_request

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# requites to grab the history of the PR
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}

0 comments on commit 4923d84

Please sign in to comment.