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 dependencies, so when run again it could pass without checking it.
Dependencies are recorded by using infer and by using ImportsChecker,
so if module A imports something from module B that was actually
defined in module C, both B and C will be recorded as dependencies of A.
We have a medium sized code repository that took two minutes for each
check. Now pylint only checks the modified modules, and it takes two
seconds.
This sounds like a great feature. Have you considered contributing it
as a pull request into pylint?
--Ned.
I tested it with pylint 1.4.3.
Hope this helps someone,
Noam
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality