I've been studying and modifying pyflakes for the last several days.
Pyflakes runs 60-100 times faster than pylint, and is almost as useful, so it's worth careful study. Indeed, I think I've learned more from studying pyflakes than from studying any other program. Here are the present results:
git discussion groupgithub code repoThis code may form the basis of tool that will check that coding conventions match actual usage. Pyflakes handles all of Leo's files in about 5 sec on my new machine, and my modified code does the same in 4 sec. I expect the convention checker will have similar performance.
I now understand the pyflakes code in detail, but I want to understand everything about how names are resolved to scopes. A day or two more should wrap up this project, at which point I'll start fixing bugs again.
Edward