From 26752ba3332fedf96356abc4db9b1e722f63860a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20S=2E=20Dokken?= Date: Tue, 14 Jan 2025 15:38:07 +0000 Subject: [PATCH] Update ruff formatting --- demo/test_demos.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/demo/test_demos.py b/demo/test_demos.py index 78b18234f..910a20b7a 100644 --- a/demo/test_demos.py +++ b/demo/test_demos.py @@ -48,7 +48,7 @@ def test_demo(file, scalar_type): assert os.system(f"cd {demo_dir} && ffcx {opts} {file}.py") == 0 assert ( os.system( - f"cd {demo_dir} && " f'cl.exe /I "../ffcx/codegeneration" {extra_flags} /c {file}.c' + f'cd {demo_dir} && cl.exe /I "../ffcx/codegeneration" {extra_flags} /c {file}.c' ) ) == 0 assert ( @@ -65,11 +65,6 @@ def test_demo(file, scalar_type): ) assert os.system(f"cd {demo_dir} && ffcx {opts} {file}.py") == 0 assert ( - os.system( - f"cd {demo_dir} && " - f"{cc} -I../ffcx/codegeneration " - f"{extra_flags} " - f"-c {file}.c" - ) + os.system(f"cd {demo_dir} && {cc} -I../ffcx/codegeneration {extra_flags} -c {file}.c") == 0 )