Description
I was looking for a way to skip GL08 checks on class constructors (__init__
) throughout my code. This is particularly as the numpydoc recommendation for class strings documents the constructor:
Class docstring
Use the same sections as outlined above (all except Returns are applicable). The constructor (__init__) should also be documented here, the Parameters section of the docstring details the constructor’s parameters.
It seems that there ought to be a default check ignore for __init__
constructors if no docstring has been provided (and if a class docstring has been provided). Obviously if an (optional) docstring for __init__
has been created, then it ought to be checked.
This conditional checking doesn't seem possible with the default override_<code>
, exclude
toml tags.
Keen to hear others thoughts!