[code-quality] Make pylint faster by caching modules that passed without warnings

2015-11-05 Thread Noam Yorav-Raphael
Hi, Take a look at cached_pylint.py at https://gist.github.com/noamraph/c933b32deb8304ac7ccd It records module dependencies, and when a module passes with no warnings, it records it together with the sha1 of the contents of each of its dependencies, so when run again it could pass without checkin

Re: [code-quality] Make pylint faster by caching modules that passed without warnings

2015-11-05 Thread Ned Batchelder
On 11/5/15 5:21 AM, Noam Yorav-Raphael wrote: Hi, Take a look at cached_pylint.py at https://gist.github.com/noamraph/c933b32deb8304ac7ccd It records module dependencies, and when a module passes with no warnings, it records it together with the sha1 of the contents of each of its dependenc

Re: [code-quality] Make pylint faster by caching modules that passed without warnings

2015-11-05 Thread Ned Batchelder
I tried this on my large project (Open edX), and it generally worked great, but was one crash: File "../more/cached_pylint.py", line 252, in sys.exit(main()) File "../more/cached_pylint.py", line 248, in main run = CachedRun(sys.argv[1:], exit=False) File "/edx/app/edxapp/venvs/e