Re: [Pydev-code] pylint/pydev error lister, how to ignore by directory?
Brought to you by:
fabioz
From: Fabio Z. <fa...@es...> - 2010-07-01 20:55:49
|
On Tue, Jun 29, 2010 at 4:22 AM, Jari Pennanen <spa...@ok...> wrote: > Hi! > > I'm using Django south, the migrations app, basically it generates > python files under directory/module "migrations", e.g. > myapp.migrations. > > But now my Eclipse Problems List is full of crap so to speak, almost > all generated migration files causes some sort of error, so the > question is how can I ignore these errors? > > I tried putting to to pylint arguments box following: > "--ignore=migrations" but it didn't help a thing. And from pydev error > checker I could not find a way to ignore by directory. > > Any help is appreciated, Thanks. Hi Jari, For PyLint I don't really know (but it should be just a matter of passing the proper arguments to it... asking the PyLint guys would probably be more fruitful there). As for the pydev errors, it cannot be ignored by package, only by file (files that have a comment #@PydevCodeAnalysisIgnore won't be analyzed -- ctrl+1 in the first line of the module will show you that option), so, you'd have to add that comment in the generated files (it should be easy to post-process those files adding that line at the module). I guess that it could be a part of the project configuration too, but it's not currently available -- please create a feature request if you believe it'd be useful. Cheers, Fabio |