-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: GL01 numpydoc validation #44567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -57,17 +57,23 @@ class CSSDict(TypedDict): | |||
Subset = Union[slice, Sequence, Index] | |||
|
|||
|
|||
def _gl01_adjust(obj: Any) -> Any: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
umm this seems kind of a hack, can we just adjust the templates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the docstrings of jinja2.PackageLoader
and jinja2.Environment
I believe, and their docstrings don't conform with GL01
cc @attack68
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats right these are inherited docstring objects.
is there a way we can prevent the doc string validation is such cases? might be better than overwriting it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks like the validation script doesn't have any capabilities to ignore certain objects or methods; it looks to check everything in the public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok merging
but maybe would be good to enable some ignoring to prevent having to do this
GL01
and check in CI #25324