Refactor: reformat all code for lefthook using ruff and gofmt (#16585)

This commit is contained in:
Wang Qi
2026-07-03 12:53:39 +08:00
committed by GitHub
parent 19fcb4a981
commit 6a4b9be426
588 changed files with 11123 additions and 15412 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ def _split_name_counter(filename: str) -> tuple[str, int | None]:
return filename, None
def duplicate_name(query_func, name_field: str="name", **kwargs) -> str:
def duplicate_name(query_func, name_field: str = "name", **kwargs) -> str:
"""
Generates a unique filename by appending/incrementing a counter when duplicates exist.