From 4405812f1e7a5564daaf2c441f3bc12ee86399a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:31:44 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.11...v0.13.3) - [github.com/MarcoGorelli/cython-lint: v0.16.7 → v0.17.0](https://github.com/MarcoGorelli/cython-lint/compare/v0.16.7...v0.17.0) - [github.com/PyCQA/isort: 6.0.1 → 6.1.0](https://github.com/PyCQA/isort/compare/6.0.1...6.1.0) - [github.com/pre-commit/mirrors-clang-format: v21.1.0 → v21.1.2](https://github.com/pre-commit/mirrors-clang-format/compare/v21.1.0...v21.1.2) - [github.com/trim21/pre-commit-mirror-meson: v1.9.0 → v1.9.1](https://github.com/trim21/pre-commit-mirror-meson/compare/v1.9.0...v1.9.1) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 007f8476af370..dd3fe8b916a57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ ci: skip: [pyright, mypy] repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.11 + rev: v0.13.3 hooks: - id: ruff args: [--exit-non-zero-on-fix] @@ -46,7 +46,7 @@ repos: - id: codespell types_or: [python, rst, markdown, cython, c] - repo: https://github.com/MarcoGorelli/cython-lint - rev: v0.16.7 + rev: v0.17.0 hooks: - id: cython-lint - id: double-quote-cython-strings @@ -67,7 +67,7 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 6.1.0 hooks: - id: isort - repo: https://github.com/asottile/pyupgrade @@ -92,14 +92,14 @@ repos: - id: sphinx-lint args: ["--enable", "all", "--disable", "line-too-long"] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v21.1.0 + rev: v21.1.2 hooks: - id: clang-format files: ^pandas/_libs/src|^pandas/_libs/include args: [-i] types_or: [c, c++] - repo: https://github.com/trim21/pre-commit-mirror-meson - rev: v1.9.0 + rev: v1.9.1 hooks: - id: meson-fmt args: ['--inplace'] From c6b9c263f979d88f5991af76ae7b3c478804c5a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:35:41 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pandas/core/groupby/groupby.py | 2 +- pandas/core/groupby/indexing.py | 2 +- pandas/io/html.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 66629966a8254..fe7bf5bbc4c2c 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -4325,7 +4325,7 @@ def nth(self) -> GroupByNthSelector: def _nth( self, n: PositionalIndexer | tuple, - dropna: Literal["any", "all", None] = None, + dropna: Literal["any", "all"] | None = None, ) -> NDFrameT: if not dropna: mask = self._make_mask_from_positional_indexer(n) diff --git a/pandas/core/groupby/indexing.py b/pandas/core/groupby/indexing.py index c658f625d5ea9..dc9cf9bcd1e64 100644 --- a/pandas/core/groupby/indexing.py +++ b/pandas/core/groupby/indexing.py @@ -296,7 +296,7 @@ def __init__(self, groupby_object: groupby.GroupBy) -> None: def __call__( self, n: PositionalIndexer | tuple, - dropna: Literal["any", "all", None] = None, + dropna: Literal["any", "all"] | None = None, ) -> DataFrame | Series: return self.groupby_object._nth(n, dropna) diff --git a/pandas/io/html.py b/pandas/io/html.py index 183af3a03221b..2f7f615596469 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -220,7 +220,7 @@ def __init__( attrs: dict[str, str] | None, encoding: str, displayed_only: bool, - extract_links: Literal[None, "header", "footer", "body", "all"], + extract_links: Literal["header", "footer", "body", "all"] | None, storage_options: StorageOptions = None, ) -> None: self.io = io @@ -1042,7 +1042,7 @@ def read_html( na_values: Iterable[object] | None = None, keep_default_na: bool = True, displayed_only: bool = True, - extract_links: Literal[None, "header", "footer", "body", "all"] = None, + extract_links: Literal["header", "footer", "body", "all"] | None = None, dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default, storage_options: StorageOptions = None, ) -> list[DataFrame]: From 405e00b9d2fb2e95640b710e6388dbf66735fa6d Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 6 Oct 2025 10:35:55 -0700 Subject: [PATCH 3/3] Ignore some new rules --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f1eba171cde99..7e17d507087e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -391,6 +391,10 @@ ignore = [ "PLW0603", # runtime-cast-value "TC006", + # unused-unpacked-variable + "RUF059", + # pytest-raises-ambiguous-pattern + "RUF043", ] exclude = [

AltStyle によって変換されたページ (->オリジナル) /