There are tools like pyflakes and pep8.py, which tell you if the code you have written meets certain standards. I want to build a similar tool which does static analysis on Django and tells things when they dont meet standards. (Eg models should have a __unicode__.)
Questions:
- Is it worth doing this? (Are there enough common things which an be tested for?)
- Is there a good starting point? (Eg some app I can contribute to instead of starting my own.)
- How do I proceed? (Eg. is using ast module a good idea for this?)
There are two open source projects that I know of which do this type of analysis speficially for Django:
Either one should provide a solid starting point for what you are looking to do.