Skip to content

Commit

Permalink
confine pre-commit to stages
Browse files Browse the repository at this point in the history
See https://pre-commit.com/#confining-hooks-to-run-at-certain-stages

> If you are authoring a tool, it is usually a good idea to provide an appropriate `stages` property. For example a reasonable setting for a linter or code formatter would be `stages: [pre-commit, pre-merge-commit, pre-push, manual]`.
  • Loading branch information
davidculley committed Dec 12, 2023
1 parent 9255bca commit df0e119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- id: isort
name: isort
entry: isort
stages: [commit, merge-commit, push, manual]
require_serial: true
language: python
types_or: [cython, pyi, python]
Expand Down

0 comments on commit df0e119

Please sign in to comment.