Skip to content

Commit df0e119

Browse files
authored
confine pre-commit to stages
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]`.
1 parent 9255bca commit df0e119

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-hooks.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- id: isort
22
name: isort
33
entry: isort
4+
stages: [commit, merge-commit, push, manual]
45
require_serial: true
56
language: python
67
types_or: [cython, pyi, python]

0 commit comments

Comments
 (0)