We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620c0f8 commit d8b3ff3Copy full SHA for d8b3ff3
.pre-commit-config.yaml
@@ -19,7 +19,7 @@ ci:
19
skip: [pyright, mypy]
20
repos:
21
- repo: https://github.com/astral-sh/ruff-pre-commit
22
- rev: v0.12.11
+ rev: v0.13.3
23
hooks:
24
- id: ruff
25
args: [--exit-non-zero-on-fix]
@@ -46,7 +46,7 @@ repos:
46
- id: codespell
47
types_or: [python, rst, markdown, cython, c]
48
- repo: https://github.com/MarcoGorelli/cython-lint
49
- rev: v0.16.7
+ rev: v0.17.0
50
51
- id: cython-lint
52
- id: double-quote-cython-strings
@@ -67,7 +67,7 @@ repos:
67
- id: trailing-whitespace
68
args: [--markdown-linebreak-ext=md]
69
- repo: https://github.com/PyCQA/isort
70
- rev: 6.0.1
+ rev: 6.1.0
71
72
- id: isort
73
- repo: https://github.com/asottile/pyupgrade
@@ -92,14 +92,14 @@ repos:
92
- id: sphinx-lint
93
args: ["--enable", "all", "--disable", "line-too-long"]
94
- repo: https://github.com/pre-commit/mirrors-clang-format
95
- rev: v21.1.0
+ rev: v21.1.2
96
97
- id: clang-format
98
files: ^pandas/_libs/src|^pandas/_libs/include
99
args: [-i]
100
types_or: [c, c++]
101
- repo: https://github.com/trim21/pre-commit-mirror-meson
102
- rev: v1.9.0
+ rev: v1.9.1
103
104
- id: meson-fmt
105
args: ['--inplace']
pandas/core/groupby/groupby.py
@@ -4325,7 +4325,7 @@ def nth(self) -> GroupByNthSelector:
4325
def _nth(
4326
self,
4327
n: PositionalIndexer | tuple,
4328
- dropna: Literal["any", "all", None] = None,
+ dropna: Literal["any", "all"] |None = None,
4329
) -> NDFrameT:
4330
if not dropna:
4331
mask = self._make_mask_from_positional_indexer(n)
pandas/core/groupby/indexing.py
@@ -296,7 +296,7 @@ def __init__(self, groupby_object: groupby.GroupBy) -> None:
296
def __call__(
297
298
299
300
) -> DataFrame | Series:
301
return self.groupby_object._nth(n, dropna)
302
pandas/io/html.py
@@ -223,7 +223,7 @@ def __init__(
223
attrs: dict[str, str] | None,
224
encoding: str,
225
displayed_only: bool,
226
- extract_links: Literal[None, "header", "footer", "body", "all"],
+ extract_links: Literal["header", "footer", "body", "all"]|None,
227
storage_options: StorageOptions = None,
228
) -> None:
229
self.io = io
@@ -1046,7 +1046,7 @@ def read_html(
1046
na_values: Iterable[object] | None = None,
1047
keep_default_na: bool = True,
1048
displayed_only: bool = True,
1049
- extract_links: Literal[None, "header", "footer", "body", "all"] = None,
+ extract_links: Literal["header", "footer", "body", "all"]|None = None,
1050
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
1051
1052
) -> list[DataFrame]:
pyproject.toml
@@ -391,6 +391,10 @@ ignore = [
391
"PLW0603",
392
# runtime-cast-value
393
"TC006",
394
+ # unused-unpacked-variable
395
+ "RUF059",
396
+ # pytest-raises-ambiguous-pattern
397
+ "RUF043",
398
]
399
400
exclude = [
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments