src/eric7/Plugins/PluginCodeStyleChecker.py

branch
eric7
changeset 10859
399d19fc7eb5
parent 10836
dc7f25f2f7e4
child 11090
f5f5f5803935
equal deleted inserted replaced
10858:8a03d5f6146c 10859:399d19fc7eb5
171 docType, codeComplexityArgs, miscellaneousArgs, errors, eol, 171 docType, codeComplexityArgs, miscellaneousArgs, errors, eol,
172 encoding, backup) 172 encoding, backup)
173 @type list of (str, str, bool, str, str, bool, int, list of (int, int), 173 @type list of (str, str, bool, str, str, bool, int, list of (int, int),
174 bool, str, dict, dict, list of str, str, str, bool) 174 bool, str, dict, dict, list of str, str, str, bool)
175 """ 175 """
176 if ( 176 if (lang is None and PythonUtilities.isPythonSource(filename, source)) or (
177 (lang is None and PythonUtilities.isPythonSource(filename, source)) 177 lang is not None and lang == "Python3"
178 or (lang is not None and lang == "Python3")
179 ): 178 ):
180 data = [source, args] 179 data = [source, args]
181 self.backgroundService.enqueueRequest("style", "Python3", filename, data) 180 self.backgroundService.enqueueRequest("style", "Python3", filename, data)
182 181
183 def styleBatchCheck(self, argumentsList): 182 def styleBatchCheck(self, argumentsList):

eric ide

mercurial