Skip to content

Integrate flake8_rst into ./ci/code_check.sh #23381

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

Merged
merged 16 commits into from
Nov 9, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
Signed-off-by: Fabian Haase <haase.fabian@gmail.com>
  • Loading branch information
FHaase committed Nov 1, 2018
commit 948f176007bf7244a64ecd41b9f50b01e8784dd4
4 changes: 2 additions & 2 deletions doc/source/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ To evaluate single-element pandas objects in a boolean context, use the method

.. code-block:: python

>>> df and df2 # noqa: E999
>>> df and df2

These will both raise errors, as you are trying to compare multiple values.

.. code-block:: console
.. code-block:: python-traceback

ValueError: The truth value of an array is ambiguous. Use a.empty, a.any() or a.all().

Expand Down
2 changes: 1 addition & 1 deletion doc/source/contributing_docstring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ infinitive verb.

.. code-block:: python

def astype(dtype): # noqa: F811
def astype(dtype):
"""
Casts Series type.

Expand Down
6 changes: 4 additions & 2 deletions doc/source/enhancingperf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ take the plain Python code from above and annotate with the ``@jit`` decorator.
Note that we directly pass NumPy arrays to the Numba function. ``compute_numba`` is just a wrapper that provides a
nicer interface by passing/returning pandas objects.

>>> %timeit compute_numba(df)
1000 loops, best of 3: 798 us per loop
.. code-block:: ipython

In [4]: %timeit compute_numba(df)
1000 loops, best of 3: 798 us per loop

In this example, using Numba was faster than Cython.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/gotchas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Occasionally you may have to deal with data that were created on a machine with
a different byte order than the one on which you are running Python. A common
symptom of this issue is an error like:

.. code-block:: console
.. code-block:: python-traceback

Traceback
...
Expand Down
2 changes: 1 addition & 1 deletion doc/source/missing_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ rules introduced in the table below.
:header: "data type", "Cast to"
:widths: 40, 40

integer, float
integer, float
boolean, object
float, no cast
object, no cast
Expand Down