-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fix flake8 issues in doc/source/whatsnew/v0.14.*.rst #24240
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
I am trying to have a go at this and I am a little confused by the SyntaxError on line 73. It loks like it is just a text response in the code I am not entirely sure what to do with this as it isn't actually code that is throwing the error as far as I can tell. To be clear, the line with the SyntaxError according to flake8-rst is the IndexError: line... Any advice? |
The problem in this case is that in a
I don't remember in the case of exceptions if something else more than the line of the error is needed, but you should find it online |
…snew/v0.14.* Implemented changes based on feedback.
…snew/v0.14.* Update the error text in the documentation as directed and fixed formatting.
xref: #24177
We didn't start validating the format of PEP8 and other code standards in the documentation examples until recently. We still have some files with errors, that we need to skip, and that we should fix, so we can start validating them.
Two steps are required to replicate the issue
Edit
setup.cfg
in the pandas home, and in the flake8-rst section, remove from theexclude
list the filedoc/source/whatsnew/v0.14.0.rst
&doc/source/whatsnew/v0.14.1.rst
Remove the import block (
from pandas import *
) from the lines (8-11) of the filev0.14.*.rst
.After that, running the next command will report the errors in the file (note that syntax error usually prevent to validate other errors, and the list of errors to fix can become much longer when the syntax error is fixed (please make sure that you are using
flake8-rst
version 0.7.0 or higher):Once all the errors are addressed, please open a pull request with the fixes in the file, and removing the file from setup.cfg. If you need to do something that feels wrong to fix an error, please ask in a comment to this issue. Please avoid other unrelated changes, which can be addressed in a separate pull request.
cc: @datapythonista
The text was updated successfully, but these errors were encountered: