Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved parallel execution code outside of PyLinter #955

Merged
merged 3 commits into from
Jul 2, 2016

Conversation

AWhetter
Copy link
Contributor

The PyLinter object is still very dependent on having certain operation performed on it in order. Hence why the parallel code is often calling methods on self.linter. As we move towards a linter object being used for a single file, it would be good to eliminate these.

Implements #936

@coveralls
Copy link

coveralls commented Jun 25, 2016

Coverage Status

Coverage increased (+0.01%) to 90.066% when pulling e41a71d on AWhetter:fix_936 into b4b6fd1 on PyCQA:per_dir_config.

@@ -841,8 +887,7 @@ def expand_modules(files_or_modules, black_list, black_list_re):
is_directory = spec.type == modutils.ModuleType.PKG_DIRECTORY

if not is_namespace:
result.append({'path': filepath, 'name': modname, 'isarg': True,
'basepath': filepath, 'basename': modname})
result.append(ModuleDescription(filepath, modname, True, filepath, modname))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make isarg a keyword argument, so that thi becomes ModuleDescription(filepath, modname, isarg=True)?

@PCManticore
Copy link
Contributor

Looks good. Two small comments and it will be ready to merge.

@coveralls
Copy link

coveralls commented Jul 2, 2016

Coverage Status

Coverage increased (+0.03%) to 90.078% when pulling 9c8a959 on AWhetter:fix_936 into b4b6fd1 on PyCQA:per_dir_config.

@coveralls
Copy link

coveralls commented Jul 2, 2016

Coverage Status

Coverage increased (+0.009%) to 90.078% when pulling 50d3d91 on AWhetter:fix_936 into cf25ba4 on PyCQA:per_dir_config.

@PCManticore
Copy link
Contributor

Looks good to me, feel free to merge it

@AWhetter AWhetter merged commit 50d3d91 into pylint-dev:per_dir_config Jul 2, 2016
@AWhetter AWhetter deleted the fix_936 branch July 2, 2016 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants