One of the modules I import into my python project triggers lots of warnings under Pychecker. Fixing up this external module isn't really an option, so I want to tell Pychecker to ignore it.
Does anyone know how to do this? I'm sure it's possible, and probably quite simple, but after trawling Google for a while I've not found any documentation or examples.
Thanks, Sam
Edit: I can't tag this with 'pychecker' unfortunately as that tag doesn't exist yet and my rep is too low to create.
Edit 2 Bonus extra question: does pychecker check ignored modules anyway, and just not print anything it finds? or do you get some speedup by ignoring some modules?
Per the docs,
IOW, in your .pycheckrc, if the troublesome module is named
foobar
, you'll havewhere the
...
means, all the suppress options you want. Usepychecker -h
to get a list of all the options; I think'limit=0'
will do what you're asking for (show a max of 0 warnings for that module, i.e., none;-), but you may want to be a bit more selective (after all you only have to write this once and for all in.pycheckrc
, not on every spot from which you're callingpychecker
... which is the convenience of the pycheckrc approach!).