Description
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/enhancingperf.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/enhancingperf.rst
doc/source/enhancingperf.rst:76:13: E999 SyntaxError: invalid syntax
doc/source/enhancingperf.rst:189:91: E501 line too long (97 > 79 characters)
doc/source/enhancingperf.rst:190:91: E501 line too long (90 > 79 characters)
doc/source/enhancingperf.rst:270:91: E501 line too long (123 > 79 characters)
doc/source/enhancingperf.rst:378:30: E226 missing whitespace around arithmetic operator
doc/source/enhancingperf.rst:385:100: E501 line too long (84 > 79 characters)
doc/source/enhancingperf.rst:550:13: E111 indentation is not a multiple of four
doc/source/enhancingperf.rst:552:13: E111 indentation is not a multiple of four
doc/source/enhancingperf.rst:570:7: E111 indentation is not a multiple of four
doc/source/enhancingperf.rst:572:4: E111 indentation is not a multiple of four
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.