[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cee2cf30bf
commit
40cf77538f
|
@ -1115,7 +1115,6 @@ class Config:
|
||||||
self._mark_plugins_for_rewrite(hook)
|
self._mark_plugins_for_rewrite(hook)
|
||||||
self._warn_about_missing_assertion(mode)
|
self._warn_about_missing_assertion(mode)
|
||||||
|
|
||||||
|
|
||||||
def _mark_plugins_for_rewrite(self, hook) -> None:
|
def _mark_plugins_for_rewrite(self, hook) -> None:
|
||||||
"""Given an importhook, mark for rewrite any top-level
|
"""Given an importhook, mark for rewrite any top-level
|
||||||
modules or packages in the distribution package for
|
modules or packages in the distribution package for
|
||||||
|
@ -1137,10 +1136,12 @@ class Config:
|
||||||
for name in _iter_rewritable_modules(package_files):
|
for name in _iter_rewritable_modules(package_files):
|
||||||
hook.mark_rewrite(name)
|
hook.mark_rewrite(name)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
apropriate_output_function("unexpected exception %s while marking plugins for assertion rewrites, see LINK TO HELPFULL DOCUMENTATION", e)
|
apropriate_output_function(
|
||||||
|
"unexpected exception %s while marking plugins for assertion rewrites, see LINK TO HELPFULL DOCUMENTATION",
|
||||||
|
e,
|
||||||
|
)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|
||||||
def _validate_args(self, args: List[str], via: str) -> List[str]:
|
def _validate_args(self, args: List[str], via: str) -> List[str]:
|
||||||
"""Validate known args."""
|
"""Validate known args."""
|
||||||
self._parser._config_source_hint = via # type: ignore
|
self._parser._config_source_hint = via # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue