-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DOC: Fixing SS02 errors as per #25113 #25362
DOC: Fixing SS02 errors as per #25113 #25362
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25362 +/- ##
=======================================
Coverage 91.73% 91.73%
=======================================
Files 173 173
Lines 52839 52839
=======================================
Hits 48472 48472
Misses 4367 4367
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25362 +/- ##
==========================================
+ Coverage 91.73% 91.73% +<.01%
==========================================
Files 173 173
Lines 52839 52839
==========================================
+ Hits 48472 48473 +1
+ Misses 4367 4366 -1
Continue to review full report at Codecov.
|
Some of the SS02 error mentioned are not because of methods but of docstring. For example, in the first SS02 error pandas/tseries/offsets.py has no method named normalize.
@souvik3333 : Before we can close the issue, we will need to fix all the errors in the issue. It looks like you only addressed some of them, unless you're planning to tackle the rest in this PR. |
Yes, I would like to tackle the rest errors, but rest of the error creating line numbers are not coming up and when I am trying to find the error in the mentioned file, the mentioned method in not in that file. One example for this issue is given in commit description. I need little help here. Can you please check it @gfyoung? |
@souvik3333 : Can you update our doc checking script to enable
|
Can you explain bit more on what I have to do? |
Line 245 in 4be995c
Add |
Nothing changed, Same errors are coming up. |
@souvik3333 : What I mean is: you need to add that to the script and push that change to your PR. |
I have updated the PR. Can you check @gfyoung what I need to do next? |
@souvik3333 : Have a look at the https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=8520 (Click the Correct those errors, and I think this PR will be good to go! I do realize that it may be difficult to verify since you were saying you had some trouble replicating all of the errors, but the error descriptions are pretty clear that you can figure out what to correct and push to the PR. |
Yes, but I am facing problem finding the exact location of the error! Can you please show me how to find the error creating line for one error then I can try for the rest of them? |
cc @WillAyd @datapythonista : Would it be possible to provide line numbers and file paths instead of using the "dot" syntax for pointing to errors? This seems to be a very valid concern @souvik3333 : The errors should be located in the following files: https://github.com/pandas-dev/pandas/blob/b2c751985ebd09b72d917d08dc06193dc0922018/pandas/_libs/tslibs/timestamps.pyx The last three around I think should be ignored. Save the Line 264 in 590cb54
|
@souvik3333 feel free to open an issue for this request if there's not already one out there - can be discussed further therein! |
Those I think for this case you'll have to try things like |
@souvik3333 can you update errors as mentioned above? |
Yes, I need a little more time. I will update the PR once it's done. |
I was thinking of continuing the work for this pull request, by tracking down all the outstanding failures and fixing them. @souvik3333 , I would keep your existing commits and build on top of them, so your work would be preserved. Is there some way I can contribute commits here without creating a new pull request? |
I don't know but you can work on it as I am busy with my exams and it would take me some time before starting working on it again. |
@nmusolino if you'd like you can clone this and push to your own PR @souvik3333 closing as stale given your latest comment. Thanks in any case! |
Some of the SS02 error mentioned are not because of methods but of docstring.
For example, in the first SS02 error pandas/tseries/offsets.py has no method named normalize.
SS02
and check in CI #25113git diff upstream/master -u -- "*.py" | flake8 --diff