Skip to content

Commit

Permalink
fix: only run pre-commit on branches that are not main (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoclyps authored May 31, 2024
1 parent ab74ccb commit aa5f366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
run: poetry run tox

- name: Lint
if: github.ref != 'refs/heads/main'
run: |
source $(poetry env info --path)/bin/activate
pre-commit install --install-hooks
Expand Down

0 comments on commit aa5f366

Please sign in to comment.