-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC/CI: Add linting to rst files, and fix issues (#23381)
- Loading branch information
1 parent
f691711
commit efd1844
Showing
24 changed files
with
215 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ Cython>=0.28.2 | |
NumPy | ||
flake8 | ||
flake8-comprehensions | ||
flake8-rst | ||
hypothesis>=3.58.0 | ||
isort | ||
moto | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,8 +306,8 @@ To evaluate single-element pandas objects in a boolean context, use the method | |
|
||
.. code-block:: python | ||
>>> if df: | ||
... | ||
>>> if df: # noqa: E999 | ||
... | ||
Or | ||
|
||
|
@@ -317,7 +317,7 @@ To evaluate single-element pandas objects in a boolean context, use the method | |
These will both raise errors, as you are trying to compare multiple values. | ||
|
||
.. code-block:: python | ||
.. code-block:: python-traceback | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
FHaase
Author
Contributor
|
||
ValueError: The truth value of an array is ambiguous. Use a.empty, a.any() or a.all(). | ||
|
@@ -732,9 +732,8 @@ with the equivalent | |
.. code-block:: python | ||
>>> (df.pipe(h) | ||
.pipe(g, arg1=1) | ||
.pipe(f, arg2=2, arg3=3) | ||
) | ||
... .pipe(g, arg1=1) | ||
... .pipe(f, arg2=2, arg3=3)) | ||
Pandas encourages the second style, which is known as method chaining. | ||
``pipe`` makes it easy to use your own or another library's functions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@FHaase We currently get a "WARNING: Pygments lexer name 'python-traceback' is not known" warning on the doc build.
From http://pygments.org/docs/lexers/, it might be this needs to be "py3tb" instead of "python-taceback" ?