From 0b2df5cb5fea3062d003e627d04fce47fd72ad84 Mon Sep 17 00:00:00 2001 From: David Zwicker Date: Sat, 17 Aug 2024 15:16:10 +0200 Subject: [PATCH] Adjusted codestyle check to use `ruff` --- scripts/run_tests.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/run_tests.py b/scripts/run_tests.py index 8e92b42..7fcf24a 100755 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -42,11 +42,8 @@ def test_codestyle(*, verbose: bool = True) -> int: print(f"Checking codestyle in folder {folder}...") path = PACKAGE_PATH / folder - # format imports - result = sp.run(["isort", "--diff", path]) - retcodes.append(result.returncode) - # format rest - result = sp.run(["black", "--check", path]) + # check format + result = sp.run(["ruff", "check", path]) retcodes.append(result.returncode) return _most_severe_exit_code(retcodes)