pre-commit updates

This commit is contained in:
Jon Herron 2022-10-12 15:41:50 -04:00
parent e0f235ca6e
commit 307e303463
1 changed files with 3 additions and 1 deletions

View File

@ -1255,7 +1255,9 @@ def prepare_form_data(
def render_jinja_template(unprocessed_template: str, data: dict[str, Any]) -> str:
"""Render_jinja_template."""
jinja_environment = jinja2.Environment(autoescape=True, lstrip_blocks=True, trim_blocks=True)
jinja_environment = jinja2.Environment(
autoescape=True, lstrip_blocks=True, trim_blocks=True
)
template = jinja_environment.from_string(unprocessed_template)
return template.render(**data)