Fix pre-commit

This commit is contained in:
Daniel A. Wozniak 2023-12-16 16:03:26 -07:00
parent 412178e48a
commit 0291228dac

View file

@ -182,7 +182,7 @@ def renderer(path=None, string=None, default_renderer="jinja|yaml", **kwargs):
default_renderer,
__opts__["renderer_blacklist"],
__opts__["renderer_whitelist"],
**kwargs
**kwargs,
)
return ret.read() if __utils__["stringio.is_readable"](ret) else ret
@ -194,12 +194,12 @@ def _get_serialize_fn(serializer, fn_name):
if not fns:
raise salt.exceptions.CommandExecutionError(
"Serializer '{}' not found.".format(serializer)
f"Serializer '{serializer}' not found."
)
if not fn:
raise salt.exceptions.CommandExecutionError(
"Serializer '{}' does not implement {}.".format(serializer, fn_name)
f"Serializer '{serializer}' does not implement {fn_name}."
)
return fn
@ -571,7 +571,7 @@ def findup(startpath, filenames, saltenv="base"):
# Verify the cwd is a valid path in the state tree
if startpath and not path_exists(startpath, saltenv):
raise salt.exceptions.SaltInvocationError(
"Starting path not found in the state tree: {}".format(startpath)
f"Starting path not found in the state tree: {startpath}"
)
# Ensure that patterns is a string or list of strings