You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
I am using custom_inherit package to automatically inherit docstrings. It would be great if pydocstyle could somehow detect that and not issue a D102 error on such methods.
I think this could be done by some simple heuristic and configuration:
allowing to specify a list of decorators, which if they are applied to a method make D102 not be made
allow to list name of a base class/metaclass used, and if it is used, D102 is not made
This might be simpler than #185 and would require only a basic check without really do dynamic analysis of the code.
The text was updated successfully, but these errors were encountered:
allowing to specify a list of decorators, which if they are applied to a method make D102 not be made
Isn't that --ignore-decorators ?
allow to list name of a base class/metaclass used, and if it is used, D102 is not made
I or Amir would have to check to see how metaclasses are represented in the AST on Py 2 and Py 3. If they're easily and statically accessible this would be a sensible addition along the lines of --ignore-decorators.
I am using custom_inherit package to automatically inherit docstrings. It would be great if pydocstyle could somehow detect that and not issue a D102 error on such methods.
I think this could be done by some simple heuristic and configuration:
This might be simpler than #185 and would require only a basic check without really do dynamic analysis of the code.
The text was updated successfully, but these errors were encountered: