Instruct users how to prevent a mutable rev in repo warning.

This commit is contained in:
Jam M. Hernandez Quiceno
2021-02-20 17:40:38 -05:00
committed by Anthony Sottile
parent d7b189ce56
commit 3d31858ee3
2 changed files with 4 additions and 2 deletions

View File

@@ -128,7 +128,8 @@ class WarnMutableRev(cfgv.ConditionalOptional):
f'(moving tag / branch). Mutable references are never '
f'updated after first install and are not supported. '
f'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
f'for more details.',
f'for more details. '
f'Hint: `pre-commit autoupdate` often fixes this.',
)

View File

@@ -228,7 +228,8 @@ def test_warn_mutable_rev_invalid(caplog, rev):
'Mutable references are never updated after first install and are '
'not supported. '
'See https://pre-commit.com/#using-the-latest-version-for-a-repository ' # noqa: E501
'for more details.',
'for more details. '
'Hint: `pre-commit autoupdate` often fixes this.',
),
]