PyCQA/pydocstyle

Add flag to ignore some functions, classes or class methods

オープン

#537 opened on 2021/05/13

 (1 件のコメント) (4 件のリアクション) (0 人の担当者)Python (191 件のフォーク)batch import
Minor (New Feature)Waiting for Assigneegood first issuehelp wanted

Repository metrics

Stars
 (1,106 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

My problem

I document my class initialization inside the class docstring, therefore pydocstyle complains about undocumented __init__ methods.

My solution idea

It would be great to have the ability to have a flag (for example --ignore-func) that would work for both functions, classes and class methods with maybe a regex. So for ignoring the __init__ the flag could be --ignore-func='.*\.__init__', with .* for the class name, \. to say that it's a class method and __init__ to ignore that method.

コントリビューターガイド