You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the exclude list the file doc/source/whatsnew/v0.12.0.rst
Remove the import block ( from pandas import *) from the lines (8-11) of the file v0.12.0.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):
$ flake8-rst doc/source/whatsnew/v0.12.*
doc/source/whatsnew/v0.12.0.rst:50:24: E201 whitespace after '{'
doc/source/whatsnew/v0.12.0.rst:50:32: E203 whitespace before ':'
doc/source/whatsnew/v0.12.0.rst:50:37: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:50:39: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:50:52: E203 whitespace before ':'
doc/source/whatsnew/v0.12.0.rst:50:57: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:50:59: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:50:62: E202 whitespace before '}'
doc/source/whatsnew/v0.12.0.rst:64:44: E203 whitespace before ':'
doc/source/whatsnew/v0.12.0.rst:64:59: E231 missing whitespace after ':'
doc/source/whatsnew/v0.12.0.rst:65:33: E231 missing whitespace after ':'
doc/source/whatsnew/v0.12.0.rst:65:57: E231 missing whitespace after ':'
doc/source/whatsnew/v0.12.0.rst:67:33: E221 multiple spaces before operator
doc/source/whatsnew/v0.12.0.rst:90:20: E228 missing whitespace around modulo operator
doc/source/whatsnew/v0.12.0.rst:245:41: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:245:43: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:245:45: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:245:62: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:262:36: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:262:52: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:262:57: E231 missing whitespace after ','
doc/source/whatsnew/v0.12.0.rst:323:10: E112 expected an indented block
doc/source/whatsnew/v0.12.0.rst:323:11: E999 IndentationError: expected an indented block
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:
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.12.0.rst
Remove the import block (
from pandas import *
) from the lines (8-11) of the filev0.12.0.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: