Is there any way to configure Pylint to report progress? Nothing fancy, just something like "Processing file 4 of 104..." I'm using it to check around 100k lines of code, and right now it produces no output while it's running. My build server has a timeout period that resets as long as output is being generated by each step, and I have to crank this timeout to 20 minutes to stop Pylint from failing. However, this causes all other steps to potentially take longer, since you could otherwise assume they timeout after 1 minute when you expect output after 5 seconds of no output.
Hey, * Chris Spencer <chrisspen@gmail.com> [2017-01-19 10:45:53 -0500]:
Is there any way to configure Pylint to report progress? Nothing fancy, just something like "Processing file 4 of 104..."
Sorry for the late answer to this! There's no way to do this currently, and I'd actually like something similar. It wouldn't be too hard - this is a start: diff --git a/pylint/lint.py b/pylint/lint.py index 258bfdc3..30bac9f1 100644 --- a/pylint/lint.py +++ b/pylint/lint.py @@ -839,6 +839,8 @@ class PyLinter(config.OptionsManagerMixIn, if not self.should_analyze_file(modname, filepath, is_argument=is_arg): continue + print(modname) + self.set_current_module(modname, filepath) # get the module representation ast_node = self.get_ast(filepath, modname) However I never got around to making this a proper option and turning it into a PR... Florian -- http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/
participants (2)
-
Chris Spencer
-
Florian Bruhin