Skip to content

Commit d8b3ff3

Browse files
[pre-commit.ci] pre-commit autoupdate (#62603)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 620c0f8 commit d8b3ff3

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.12.11
22+
rev: v0.13.3
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -46,7 +46,7 @@ repos:
4646
- id: codespell
4747
types_or: [python, rst, markdown, cython, c]
4848
- repo: https://github.com/MarcoGorelli/cython-lint
49-
rev: v0.16.7
49+
rev: v0.17.0
5050
hooks:
5151
- id: cython-lint
5252
- id: double-quote-cython-strings
@@ -67,7 +67,7 @@ repos:
6767
- id: trailing-whitespace
6868
args: [--markdown-linebreak-ext=md]
6969
- repo: https://github.com/PyCQA/isort
70-
rev: 6.0.1
70+
rev: 6.1.0
7171
hooks:
7272
- id: isort
7373
- repo: https://github.com/asottile/pyupgrade
@@ -92,14 +92,14 @@ repos:
9292
- id: sphinx-lint
9393
args: ["--enable", "all", "--disable", "line-too-long"]
9494
- repo: https://github.com/pre-commit/mirrors-clang-format
95-
rev: v21.1.0
95+
rev: v21.1.2
9696
hooks:
9797
- id: clang-format
9898
files: ^pandas/_libs/src|^pandas/_libs/include
9999
args: [-i]
100100
types_or: [c, c++]
101101
- repo: https://github.com/trim21/pre-commit-mirror-meson
102-
rev: v1.9.0
102+
rev: v1.9.1
103103
hooks:
104104
- id: meson-fmt
105105
args: ['--inplace']

pandas/core/groupby/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,7 @@ def nth(self) -> GroupByNthSelector:
43254325
def _nth(
43264326
self,
43274327
n: PositionalIndexer | tuple,
4328-
dropna: Literal["any", "all", None] = None,
4328+
dropna: Literal["any", "all"] | None = None,
43294329
) -> NDFrameT:
43304330
if not dropna:
43314331
mask = self._make_mask_from_positional_indexer(n)

pandas/core/groupby/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def __init__(self, groupby_object: groupby.GroupBy) -> None:
296296
def __call__(
297297
self,
298298
n: PositionalIndexer | tuple,
299-
dropna: Literal["any", "all", None] = None,
299+
dropna: Literal["any", "all"] | None = None,
300300
) -> DataFrame | Series:
301301
return self.groupby_object._nth(n, dropna)
302302

pandas/io/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def __init__(
223223
attrs: dict[str, str] | None,
224224
encoding: str,
225225
displayed_only: bool,
226-
extract_links: Literal[None, "header", "footer", "body", "all"],
226+
extract_links: Literal["header", "footer", "body", "all"] | None,
227227
storage_options: StorageOptions = None,
228228
) -> None:
229229
self.io = io
@@ -1046,7 +1046,7 @@ def read_html(
10461046
na_values: Iterable[object] | None = None,
10471047
keep_default_na: bool = True,
10481048
displayed_only: bool = True,
1049-
extract_links: Literal[None, "header", "footer", "body", "all"] = None,
1049+
extract_links: Literal["header", "footer", "body", "all"] | None = None,
10501050
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
10511051
storage_options: StorageOptions = None,
10521052
) -> list[DataFrame]:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ ignore = [
391391
"PLW0603",
392392
# runtime-cast-value
393393
"TC006",
394+
# unused-unpacked-variable
395+
"RUF059",
396+
# pytest-raises-ambiguous-pattern
397+
"RUF043",
394398
]
395399

396400
exclude = [

0 commit comments

Comments
 (0)