Skip to content

Commit 3085218

Browse files
committed
Improve python-style mx command
1 parent 618b7e1 commit 3085218

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,9 @@ def python_style_checks(args):
11641164
if not os.environ.get("ECLIPSE_EXE"):
11651165
find_eclipse()
11661166
if os.environ.get("ECLIPSE_EXE"):
1167-
mx.command_function("eclipseformat")([])
1168-
mx.command_function("spotbugs")([])
1167+
mx.command_function("eclipseformat")(["--primary"])
1168+
if "--no-spotbugs" not in args:
1169+
mx.command_function("spotbugs")([])
11691170

11701171

11711172
def python_checkcopyrights(args):
@@ -2057,7 +2058,7 @@ def run_leak_launcher(input_args, out=None):
20572058
'deploy-binary-if-master': [deploy_binary_if_master, ''],
20582059
'python-gate': [python_gate, '--tags [gates]'],
20592060
'python-update-import': [update_import_cmd, '[--no-pull] [import-name, default: truffle]'],
2060-
'python-style': [python_style_checks, '[--fix]'],
2061+
'python-style': [python_style_checks, '[--fix] [--no-spotbugs]'],
20612062
'python-svm': [python_svm, ''],
20622063
'python-gvm': [python_gvm, ''],
20632064
'python-unittests': [python3_unittests, ''],

0 commit comments

Comments
 (0)