mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-05 15:33:10 -05:00
chore: upgrade pre-commit hooks (#1735)
* change pep585 hook to pyupgrade * run pyupgrade + cleanup lint errors
This commit is contained in:
@@ -57,7 +57,7 @@ def clean_recipe_folders(root_dir: Path, dry_run: bool) -> int:
|
||||
|
||||
def tail_log(log_file: Path, n: int) -> list[str]:
|
||||
try:
|
||||
with open(log_file, "r") as f:
|
||||
with open(log_file) as f:
|
||||
lines = f.readlines()
|
||||
except FileNotFoundError:
|
||||
return ["no log file found"]
|
||||
|
||||
Reference in New Issue
Block a user