From a842f41627bed22ece388283f5e7e1cdfdacc6b2 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 17 Dec 2024 16:49:50 -0800 Subject: [PATCH] style: Fix linting issues in benchmark.py --- benchmark/benchmark.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 363921dde..ec22a78c2 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -791,23 +791,23 @@ def run_unit_tests(testdir, history_fname, test_files): # Map of file extensions to test commands TEST_COMMANDS = { - '.py': ['pytest'], - '.rs': ['cargo', 'test', '--', '--include-ignored'], - '.cs': ['dotnet', 'test'], - '.go': ['go', 'test', './...'], - '.js': ['npm', 'test'], + ".py": ["pytest"], + ".rs": ["cargo", "test", "--", "--include-ignored"], + ".cs": ["dotnet", "test"], + ".go": ["go", "test", "./..."], + ".js": ["npm", "test"], } # Get unique file extensions from test files extensions = {Path(f).suffix for f in test_files} - + # Find matching test command command = None for ext in extensions: if ext in TEST_COMMANDS: command = TEST_COMMANDS[ext] break - + if not command: raise ValueError(f"No test command found for files with extensions: {extensions}") print(" ".join(command))