Skip to content

Commit 58461fe

Browse files
authored
STY: Enable all sphinx-lint rules (#58689)
1 parent 8516c8f commit 58461fe

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ repos:
9090
rev: v0.9.1
9191
hooks:
9292
- id: sphinx-lint
93+
args: ["--enable", "all", "--disable", "line-too-long"]
9394
- repo: https://github.com/pre-commit/mirrors-clang-format
9495
rev: v18.1.4
9596
hooks:

doc/source/development/maintaining.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ Post-Release
462462
the appropriate ones for the version you are releasing):
463463

464464
- Log in to the server and use the correct user.
465-
- `cd /var/www/html/pandas-docs/`
466-
- `ln -sfn version/2.1 stable` (for a major or minor release)
467-
- `ln -sfn version/2.0.3 version/2.0` (for a patch release)
465+
- ``cd /var/www/html/pandas-docs/``
466+
- ``ln -sfn version/2.1 stable`` (for a major or minor release)
467+
- ``ln -sfn version/2.0.3 version/2.0`` (for a patch release)
468468

469469
2. If releasing a major or minor release, open a PR in our source code to update
470470
``web/pandas/versions.json``, to have the desired versions in the documentation

doc/source/whatsnew/v0.15.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Rolling/expanding moments improvements
445445
3 5
446446
dtype: float64
447447
448-
- :func:`rolling_window` now normalizes the weights properly in rolling mean mode (`mean=True`) so that
448+
- :func:`rolling_window` now normalizes the weights properly in rolling mean mode (``mean=True``) so that
449449
the calculated weighted means (e.g. 'triang', 'gaussian') are distributed about the same means as those
450450
calculated without weighting (i.e. 'boxcar'). See :ref:`the note on normalization <window.weighted>` for further details. (:issue:`7618`)
451451

doc/source/whatsnew/v0.15.2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Other enhancements:
212212
4 True True True True
213213
214214
- Added support for ``utcfromtimestamp()``, ``fromtimestamp()``, and ``combine()`` on ``Timestamp`` class (:issue:`5351`).
215-
- Added Google Analytics (`pandas.io.ga`) basic documentation (:issue:`8835`). See `here <https://pandas.pydata.org/pandas-docs/version/0.15.2/remote_data.html#remote-data-ga>`__.
215+
- Added Google Analytics (``pandas.io.ga``) basic documentation (:issue:`8835`). See `here <https://pandas.pydata.org/pandas-docs/version/0.15.2/remote_data.html#remote-data-ga>`__.
216216
- ``Timedelta`` arithmetic returns ``NotImplemented`` in unknown cases, allowing extensions by custom classes (:issue:`8813`).
217217
- ``Timedelta`` now supports arithmetic with ``numpy.ndarray`` objects of the appropriate dtype (numpy 1.8 or newer only) (:issue:`8884`).
218218
- Added ``Timedelta.to_timedelta64()`` method to the public API (:issue:`8884`).

doc/source/whatsnew/v0.24.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ Timedelta
16531653
- Bug in :class:`Index` with numeric dtype when multiplying or dividing an array with dtype ``timedelta64`` (:issue:`22390`)
16541654
- Bug in :class:`TimedeltaIndex` incorrectly allowing indexing with ``Timestamp`` object (:issue:`20464`)
16551655
- Fixed bug where subtracting :class:`Timedelta` from an object-dtyped array would raise ``TypeError`` (:issue:`21980`)
1656-
- Fixed bug in adding a :class:`DataFrame` with all-`timedelta64[ns]` dtypes to a :class:`DataFrame` with all-integer dtypes returning incorrect results instead of raising ``TypeError`` (:issue:`22696`)
1656+
- Fixed bug in adding a :class:`DataFrame` with all-``timedelta64[ns]`` dtypes to a :class:`DataFrame` with all-integer dtypes returning incorrect results instead of raising ``TypeError`` (:issue:`22696`)
16571657
- Bug in :class:`TimedeltaIndex` where adding a timezone-aware datetime scalar incorrectly returned a timezone-naive :class:`DatetimeIndex` (:issue:`23215`)
16581658
- Bug in :class:`TimedeltaIndex` where adding ``np.timedelta64('NaT')`` incorrectly returned an all-``NaT`` :class:`DatetimeIndex` instead of an all-``NaT`` :class:`TimedeltaIndex` (:issue:`23215`)
16591659
- Bug in :class:`Timedelta` and :func:`to_timedelta()` have inconsistencies in supported unit string (:issue:`21762`)

doc/source/whatsnew/v0.25.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ Numeric
10821082
- Bug in :meth:`~pandas.eval` when comparing floats with scalar operators, for example: ``x < -0.1`` (:issue:`25928`)
10831083
- Fixed bug where casting all-boolean array to integer extension array failed (:issue:`25211`)
10841084
- Bug in ``divmod`` with a :class:`Series` object containing zeros incorrectly raising ``AttributeError`` (:issue:`26987`)
1085-
- Inconsistency in :class:`Series` floor-division (`//`) and ``divmod`` filling positive//zero with ``NaN`` instead of ``Inf`` (:issue:`27321`)
1085+
- Inconsistency in :class:`Series` floor-division (``//``) and ``divmod`` filling positive//zero with ``NaN`` instead of ``Inf`` (:issue:`27321`)
10861086
-
10871087
10881088
Conversion

doc/source/whatsnew/v1.1.4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Fixed regressions
3131
- Fixed regression in setitem with :meth:`DataFrame.iloc` which raised error when trying to set a value while filtering with a boolean list (:issue:`36741`)
3232
- Fixed regression in setitem with a Series getting aligned before setting the values (:issue:`37427`)
3333
- Fixed regression in :attr:`MultiIndex.is_monotonic_increasing` returning wrong results with ``NaN`` in at least one of the levels (:issue:`37220`)
34-
- Fixed regression in inplace arithmetic operation (`+=`) on a Series not updating the parent DataFrame/Series (:issue:`36373`)
34+
- Fixed regression in inplace arithmetic operation (``+=``) on a Series not updating the parent DataFrame/Series (:issue:`36373`)
3535

3636
.. ---------------------------------------------------------------------------
3737

0 commit comments

Comments
 (0)