-
Notifications
You must be signed in to change notification settings - Fork 204
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
MAINT Fix lint, clean and expand docstrings #1169
Conversation
for more information, see https://pre-commit.ci
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.
Awesome @lucyleeow , I was not happy adding all those ignores
-- it'll be nice to have them gone!
sphinx_gallery/scrapers.py
Outdated
0: /home/sample-proj/source/plot_types/images/img1.png, | ||
2.0: /home/sample-proj/source/plot_types/images/img1_2_00x.png, | ||
The result will be: | ||
|
||
The result wwould be: |
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.
The result wwould be: | |
The result would be: |
Also there are spelling failures in CIs
for more information, see https://pre-commit.ci
Regex to find references to python objects. | ||
example_globals: Optional[Dict[str, Any]] | ||
Global variables for examples. Default=None | ||
node : ast.Module or str |
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.
When using default 'exec' I think the output is ast.Module
:
https://greentreesnakes.readthedocs.io/en/latest/tofrom.html#getting-to-and-from-asts
Thanks! I did not expect CIs to be green already! |
Addresses some docstring lint rules previously ignored.
Turned out to be larger than I initially expected. If you're wanting to take a look @larsoner, would be useful to just look at any 'parameter' additions to make sure they are correct.