@@ -1164,8 +1164,9 @@ def python_style_checks(args):
1164
1164
if not os .environ .get ("ECLIPSE_EXE" ):
1165
1165
find_eclipse ()
1166
1166
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" )([])
1169
1170
1170
1171
1171
1172
def python_checkcopyrights (args ):
@@ -2057,7 +2058,7 @@ def run_leak_launcher(input_args, out=None):
2057
2058
'deploy-binary-if-master' : [deploy_binary_if_master , '' ],
2058
2059
'python-gate' : [python_gate , '--tags [gates]' ],
2059
2060
'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] ' ],
2061
2062
'python-svm' : [python_svm , '' ],
2062
2063
'python-gvm' : [python_gvm , '' ],
2063
2064
'python-unittests' : [python3_unittests , '' ],
0 commit comments