Tips and tricks

Respect the suggested structure

Put your test in a subfolder just under your plugin python file. Otherwise, running will not work.

Auto completion in eclipse

PyDev plugin for eclipse may needs some help in finding the correct type of a variable. For example in your extension point overrides:

def start_member(self,member):
    """
    @type member: cast.analysers.Member
    """
    cast.analysers.log.debug('  Starting member ' + str(member))

Use @type annotations in comments to help the editor finding the correct type. Those annotations are already set in the provided templates.

Some notable usefull python libraries

The provided python distribution contains a lot of usefull libraries :

  • lxml for reading/writing xml files
  • sqlparse for non validating sql parsing