-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add an option to generate progress output #1554
Comments
Yes, we do not have this kind of feature right now. For very simple solution you may try patching pylint yourself by modifying for descr in self.expand_files(files_or_modules):
modname, filepath, is_arg = descr['name'], descr['path'], descr['isarg']
if not self.should_analyze_file(modname, filepath, is_argument=is_arg):
continue
print("Checking module", modname) # added line
self.set_current_module(modname, filepath) This will work for simple non-parallel builds. In general, to have some form of progress bar built-in in pylint, we'll need to make sure both sequential and parallel builds will work fine. I'd prefer to discuss more about requirements and specification before jumping to implementation. |
I think a proposal or a proof of concept would greatly accelerate the process. Maintainers are busy running in order to stand still (new python interpreters, open pull request, upgrade of dependencies...), so unless someone interested in an issue push it, those kind of big issues are not going to be solved. |
Hi Folks, I was working on pandas repo for a PR and wanted to run pylint. It's a pretty big repository and Pylint runs for very long time without showing any progress. I would like to add a progressbar or STDOUT the file being checked in Pylint. Do you have any concerns over it? |
This is a high priority issue so any help is appreciated 😄 In order to be able to handle parallel builds a specification still needs to be made. We have some issues with parallelization however, so maybe other maintainers would agree to not handle parallel builds until #2525 is fixed ? An option also need to be defined so it's possible to remove this output. I don't want to add a dependency to |
Thank you. I will wait till a spec has been defined and agreed by all maintainers. |
A person pushing for this feature with a design proposal or a proof of concept would accelerate the implementation a lot. Maintainers are all busy running in order to stand still (new interpreters, upgrading dependencies, reviewing merge requests, triaging issues, releasing, fixing crash and bugs, etc.). As you probably saw I only reacted to your comment even if the issue is high priority :) |
This is a feature request.
I'm currently using Pylint to check a very large codebase as part of a continuous build process. It now takes over 20 minutes to run, which isn't itself a problem. The problem is that Pylint doesn't output any progress information as it processes without encountering errors, so my build tool is failing Pylint because it thinks it's timing out.
Obviously, I can increase the timeout used by my tool, but I'll have to continually maintain this as my code grows. I don't want to outright disable the timeout check for cases where, due to low memory or other strange edge-cases, Pylint genuinely hangs and needs to be forcefully terminated. The ideal solution would be if Pylint could output some sort of progress, such as the names of files scanned, or better yet, an overall percent progress until completion.
I'm currently using 1.7.1, and
--help
doesn't appear to indicate there's currently any feature like this.The text was updated successfully, but these errors were encountered: