Fix Ruff Blank line contains whitespace

This commit is contained in:
anapnoe
2024-10-03 13:01:22 +03:00
parent 957bb29fff
commit bb1d864811
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -489,7 +489,7 @@ def custom_sort_key(filename):
base = match.group(1) if match else filename
suffix = match.group(2) if match else ''
extension = match.group(3) if match else ''
# 1. Base name
# 2. Suffix (optional)
return (base, suffix, extension)
@@ -501,7 +501,7 @@ def list_files_with_prefix(prefix, file_extension):
for dirpath in dirs:
if not os.path.isdir(dirpath):
continue
for filename in os.listdir(dirpath):
if filename.startswith(prefix) and filename.endswith(file_extension):
res.append(os.path.join(dirpath, filename))