Edgewall Software

Changes between Version 16 and Version 17 of TracDev/DevelopmentWithEclipseAndPyDev


Ignore:
Timestamp:
Jan 24, 2012, 2:27:58 PM (12 years ago)
Author:
framay <franz.mayer@…>
Comment:

added chapter "pylint integration"

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/DevelopmentWithEclipseAndPyDev

    v16 v17  
    4141If Trac is running, your changes will be effective immediately.
    4242
     43== pylint integration ==
     44
     45Pylint is a validator and quality checker for the Python programming language. It can be integrated with !PyDev, see [http://pydev.org/manual_adv_pylint.html pydev.org] for details.
     46
     47For developing Trac plugins, you should reference to all dependend eggs (such as Tarc, Genshi, Babel, etc.). To do this open  `Project > Properties`, go to node `PyDev - PYTHONPATH` and click on `Add zip/jar/egg/` in tab `External Libraries`. Search for your `Trac-$VERSION-.egg` and do the same for all required libraries (Genshi, Babel).
     48
     49If you import from `pkg_resources` you need to add `#@UnresolvedImport` after it, because otherwise you get the error: `Unresolved import: resource_filename` (see [http://stackoverflow.com/questions/6336882/pylint-doesnt-like-pkg-resources-resource-filename stackoverflow-question] for details):
     50
     51{{{#!py
     52from pkg_resources import resource_filename #@UnresolvedImport
     53}}}
    4354== Thanks ==
    4455