From 538da34a0c30e510b8a687cca7fad4d8907aac69 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 25 May 2025 10:55:09 -0700 Subject: [PATCH] lint --- mfbatch/__main__.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mfbatch/__main__.py b/mfbatch/__main__.py index 9c73125..e64cc34 100644 --- a/mfbatch/__main__.py +++ b/mfbatch/__main__.py @@ -31,19 +31,21 @@ def execute_batch_list(batch_list_path: str, dry_run: bool, interactive: bool): def sort_flac_files(file_list, mode): + "Sort flac files" if mode == 'path': return sorted(file_list) - elif mode == 'mtime': + if mode == 'mtime': return sorted(file_list, key=os.path.getmtime) - elif mode == 'ctime': + if mode == 'ctime': return sorted(file_list, key=os.path.getctime) - elif mode == 'name': + if mode == 'name': return sorted(file_list, key=os.path.basename) - else: - return file_list + + return file_list def write_batchfile_entries_for_file(path, metadatums): + "Create batchfile entries for `path`" buffer = StringIO() try: @@ -106,6 +108,7 @@ def create_batch_list(flac_files: List[str], command_file: str, f.write("# mfbatch: create batchlist operation complete\n") + def main(): """ Entry point implementation