File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,26 @@ the defaults are overwritten. You must fully specify all arguments for
24
24
your hook if you make use of ` args: ` .
25
25
{{% /note %}}
26
26
27
+ {{% note %}}
28
+ ** A note about ` pre-commit autoupdate ` :**
29
+
30
+ ` pre-commit autoupdate ` updates the ` rev ` for each repository defined in your ` .pre-commit-config.yaml `
31
+ to the latest available tag in the default branch.
32
+
33
+ Poetry follows a branching strategy, where the default branch is the active developement branch
34
+ and fixes gets back ported to stable branches. New tags are assigned in these stable branches.
35
+
36
+ ` pre-commit ` does not support such a branching strategy and has decided to not implement
37
+ an option, either on the [ user side] ( https://github.com/pre-commit/pre-commit/issues/2512 )
38
+ or [ hook author side] ( https://github.com/pre-commit/pre-commit/issues/2508 ) , to define a branch for lookup the latest
39
+ available tag.
40
+
41
+ Thus, ` pre-commit autoupdate ` is not usable for the hooks described here.
42
+
43
+ You can avoid changing the ` rev ` to an unexpected value, by using the ` --repo ` parameter (may be specified multiple
44
+ times), to explicit list repositories that should be updated. An option to explicit exclude
45
+ repositories [ will not be implemented] ( https://github.com/pre-commit/pre-commit/issues/1959 ) .
46
+ {{% /note %}}
27
47
28
48
## poetry-check
29
49
You can’t perform that action at this time.
0 commit comments