mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
include the configured value in the language_version / additional_dependencies error
This commit is contained in:
parent
98b9b70aa4
commit
2188c0fd2c
2 changed files with 8 additions and 4 deletions
|
|
@ -67,7 +67,8 @@ def environment_dir(d: str | None, language_version: str) -> str | None:
|
|||
def assert_version_default(binary: str, version: str) -> None:
|
||||
if version != C.DEFAULT:
|
||||
raise AssertionError(
|
||||
f'For now, pre-commit requires system-installed {binary}',
|
||||
f'for now, pre-commit requires system-installed {binary} -- '
|
||||
f'you selected `language_version: {version}`',
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -77,8 +78,9 @@ def assert_no_additional_deps(
|
|||
) -> None:
|
||||
if additional_deps:
|
||||
raise AssertionError(
|
||||
f'For now, pre-commit does not support '
|
||||
f'additional_dependencies for {lang}',
|
||||
f'for now, pre-commit does not support '
|
||||
f'additional_dependencies for {lang} -- '
|
||||
f'you selected `additional_dependencies: {additional_deps}`',
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue