Email Re: [Python-projects] Allow suppressing class docstrings

from
subject
Re: [Python-projects] Allow suppressing class docstrings
date
2004/02/19 11:04
On Thursday 12 February à 12:18, Edvard Majakari wrote:

> Having a class of the form

> class ParseException(Exception):
>       pass

> makes pylint to complain about "Missing docstring". Using no-docstring-rgx
> doesn't help here, because it's a class, not a function or method. It
> would be so nice to be able to make pylint ignore such missing docstrings.

I've checked in a fix in the CVS, making the no-docstring-rgx apply on
classes too. If you want to get it working for you, just change line 265
of pylint/checkers/base.py to :

        if self.config.no_docstring_rgx.match(node.name) is None:
            self.check_docstring('class', node)

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects