Skip to content

Commit

Permalink
--jobs can be used with --load-plugins now. Closes issue #456.
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Mar 24, 2015
1 parent a548cbc commit 0cf4153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ ChangeLog for Pylint
as in `# pylint: disable=old-style-class;reason=...`.
Closes issue #449.

* --jobs can be used with --load-plugins now. Closes issue #456.


2015-03-14 -- 1.4.3

Expand Down
5 changes: 4 additions & 1 deletion pylint/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def run(self):
self._config["jobs"] = 1 # Child does not parallelize any further.
self._python3_porting_mode = self._config.pop(
'python3_porting_mode', None)
self._plugins = self._config.pop('plugins', None)

# Run linter for received files/modules.
for file_or_module in iter(tasks_queue.get, 'STOP'):
Expand All @@ -232,7 +233,8 @@ def _run_linter(self, file_or_module):
# Register standard checkers.
linter.load_default_plugins()
# Load command line plugins.
# TODO linter.load_plugin_modules(self._plugins)
if self._plugins:
linter.load_plugin_modules(self._plugins)

linter.load_configuration(**self._config)
linter.set_reporter(reporters.CollectingReporter())
Expand Down Expand Up @@ -760,6 +762,7 @@ def _parallel_task(self, files_or_modules):
if optname not in filter_options:
config[optname] = configuration.format_option_value(optdict, val)
config['python3_porting_mode'] = self._python3_porting_mode
config['plugins'] = self._dynamic_plugins

childs = []
manager = multiprocessing.Manager() # pylint: disable=no-member
Expand Down

0 comments on commit 0cf4153

Please sign in to comment.