Skip to content

Commit 71423a2

Browse files
committed
fix invocation of python-style runner
1 parent 1a3dd16 commit 71423a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,9 @@ def python_style_checks(args):
636636
python_checkcopyrights(["--fix"])
637637
if not os.environ.get("ECLIPSE_EXE"):
638638
find_eclipse()
639-
mx.command_function("eclipseformat")()
640-
mx.command_function("spotbugs")()
639+
if os.environ.get("ECLIPSE_EXE"):
640+
mx.command_function("eclipseformat")([])
641+
mx.command_function("spotbugs")([])
641642

642643

643644
def python_checkcopyrights(args):

0 commit comments

Comments
 (0)