Skip to content

Commit

Permalink
Only run pre-commit on changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojunfeng committed May 17, 2024
1 parent b235b4a commit 5558fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: pip install -e .[pre-commit,tests,analysis,dev]

- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short; git diff; exit 1 )
run: pre-commit run || ( git status --short; git diff; exit 1 )

tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5558fed

Please sign in to comment.