5 Nov
2015
5 Nov
'15
10:21 a.m.
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. I tested it with pylint 1.4.3. Hope this helps someone, Noam