File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ paths.source = [
118118 " **/src" ,
119119 " **\\ src" ,
120120]
121- report.fail_under = 65
121+ report.fail_under = 63
122122run.parallel = true
123123run.plugins = [
124124 " covdefaults" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ def _patch() -> None:
2323 from pre_commit import main # noqa: PLC0415
2424
2525 _original_main , main .main = main .main , _new_main
26+ if "--version" in sys .argv :
27+ from importlib .metadata import version as _metadata_version # noqa: PLC0415
28+
29+ from pre_commit import constants # noqa: PLC0415
30+
31+ constants .VERSION = (
32+ f"{ constants .VERSION } ("
33+ f"pre-commit-uv={ _metadata_version ('pre-commit-uv' )} , "
34+ f"uv={ _metadata_version ('uv' )} "
35+ f")"
36+ )
2637
2738
2839def _new_main (argv : list [str ] | None = None ) -> int :
You can’t perform that action at this time.
0 commit comments