-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Fix docstrings error GL07 - Sections are in the wrong order #24125
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
Comments
We had an other issue for part of them: #24058 I don't think there was so much progress, but it's better to check before to avoid duplicate work. |
Sorry about that, I didn't notice issue #24058 when I was fixing all the GL07 errors. @YuechengWu I will try to find you another similar error to work on today. |
@alexander-ponomaroff no worries, I wasn't making much progress, what other similar errors there are? Let me know if you find anything. Thank you. |
Once #24126 gets merged. I will make a pull request that fixes an additional 10 out of 24 remaining errors. The remaining 14 errors are a bit problematic and need to be addressed. I will post the remaining 14 errors below and the problems with them. These 4 errors have similar problems - appending a template to its own docs
EXAMPLE
These 9 errors have similar problems - appending two different docs
EXAMPLE
Unable to trace where this error occurs - mean() from GroupBy has proper order of docs
|
@YuechengWu I found something that you can explore and work on if you'd like. Sorry again for accidentally taking some of the errors that you started exploring. If you run the following command: You will get all SS03 errors in the pandas/core/generic.py file. There are many of these errors in that file. (SS03 - Summary does not end with a period) It will be easier for you to start in one file and go from there. Running If you are interested in this error, please create an issue similarly to how I created this one (maybe with some screenshots to make it better 👍). And create a pull request for that issue. Make sure to let people know in the issue that you are already working on this. |
@alexander-ponomaroff hey Alex, when I run the script, it tells me grep is not recognized as an internal or external command. Then I ran the script with out the pipe part, it has given me a bunch of errors, here is the screen shot, let me know if you can see this. Thanks. |
grep only works on linux/mac. You can add |
@alexander-ponomaroff @datapythonista are these errors I am suppose to get after running the script? Let me know if you guys are able to see it. Thanks. |
yes, that looks good. Do we have an issue for it? would be nice to keep the conversarion in the corresponding issue, this one is unrelated to this, right? |
@datapythonista not yet, i am going to create an issue and work on it if that's ok |
sure, that sounds great. |
When checking for errors with ./scripts/validate_docstrings.py, There is an error that comes up:
GL07
'Sections are in the wrong order. Correct order is: ' '{correct_sections}'
I worked on this and will create a pull request for this issue shortly to go into more detail on what I fixed.
@datapythonista
The text was updated successfully, but these errors were encountered: