Reputation: 12717
Which helpful static code analysis can you recommend for Python. I believe they are useful for refactoring code. I know
Are there static call analyzers? If I wanted to program a custom one, which would be the easiest way?
What other type of static code checks can you think of? Or maybe even some Python magic like ABCs?
EDIT: I've found that either using http://docs.python.org/3.3/library/ast.html or maybe even http://www.astroid.org/ can be used to program some custom parser. Then one can use graphviz to visualize or even PlantUML for UML graphs.
Upvotes: 5
Views: 2421
Reputation: 61
this is a very powerful python type inferencer https://github.com/yinwang0/pysonar2
it has strong bug check ability but it's not exposed through its interface, but I assume you could do many awesome checks based on it.
Upvotes: 2
Reputation: 165
Pysonar2 is a very nice implementation of abstract interpretation
to type inference Python projects. My answer to another similar question is here.
Upvotes: 0
Reputation: 4832
check out pychecker and pyflakes. There was a famous question to discuss the pylint-pychecker-or-pyflakes
Upvotes: 2
Reputation: 11528
Not exactly "static code analyzer" but even a bit more:
http://code.google.com/p/shedskin/
Upvotes: 0