chore: upgrade pre-commit hooks (#1735)

* change pep585 hook to pyupgrade

* run pyupgrade + cleanup lint errors
This commit is contained in:
Hayden
2022-10-17 14:37:06 -08:00
committed by GitHub
parent e516a2e801
commit a8f0fb14a7
13 changed files with 79 additions and 83 deletions

View File

@@ -105,7 +105,7 @@ class TemplateService(BaseService):
if not j2_path.is_file():
raise FileNotFoundError(f"Template '{j2_path}' not found.")
with open(j2_path, "r") as f:
with open(j2_path) as f:
template_text = f.read()
template = Template(template_text)