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.
The first step of this issue would be edit setup.cfg in the pandas home, and in the flake8-rst section, remove from the exclude list the file doc/source/visualization.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/visualization.rst
doc/source/visualization.rst:132:22: E225 missing whitespace around operator
doc/source/visualization.rst:132:22: E999 SyntaxError: invalid syntax
doc/source/visualization.rst:132:26: E225 missing whitespace around operator
doc/source/visualization.rst:166:25: E702 multiple statements on one line (semicolon)ator
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.
The text was updated successfully, but these errors were encountered:
Please take one at a time from the issues list. May be simpler for you to address all them at the same time, but makes our life more complicated when reviewing and merging.
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.
The first step of this issue would be edit
setup.cfg
in the pandas home, and in theflake8-rst
section, remove from theexclude
list the filedoc/source/visualization.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
version0.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.The text was updated successfully, but these errors were encountered: