Skip to content

Commit 8afbeec

Browse files
[pre-commit.ci] pre-commit autoupdate (#2803)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.1 → v0.12.2](astral-sh/ruff-pre-commit@v0.12.1...v0.12.2) - [github.com/pycqa/flake8: 7.2.0 → 7.3.0](PyCQA/flake8@7.2.0...7.3.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6bf1731 commit 8afbeec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
55
# Ruff version.
6-
rev: 'v0.12.1'
6+
rev: 'v0.12.2'
77
hooks:
88
# Run the formatter.
99
- id: ruff-format
@@ -22,7 +22,7 @@ repos:
2222
args: [--ignore-words-list=ser]
2323
exclude: ^docs/api-completeness.md$
2424
- repo: https://github.com/pycqa/flake8
25-
rev: '7.2.0' # todo: remove once https://github.com/astral-sh/ruff/issues/458 is addressed
25+
rev: '7.3.0' # todo: remove once https://github.com/astral-sh/ruff/issues/458 is addressed
2626
hooks:
2727
- id: flake8
2828
additional_dependencies: [darglint==1.8.1, Flake8-pyproject]

narwhals/_pandas_like/group_by.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def agg(self, *exprs: PandasLikeExpr) -> PandasLikeDataFrame: # noqa: C901, PLR
214214
)
215215
# Keep inplace=True to avoid making a redundant copy.
216216
# This may need updating, depending on https://github.com/pandas-dev/pandas/pull/51466/files
217-
result.reset_index(inplace=True) # noqa: PD002
217+
result.reset_index(inplace=True)
218218
return self.compliant._with_native(
219219
select_columns_by_name(result, new_names, implementation)
220220
).rename(dict(zip(self._keys, self._output_key_names)))
@@ -261,7 +261,7 @@ def func(df: Any) -> Any:
261261

262262
# Keep inplace=True to avoid making a redundant copy.
263263
# This may need updating, depending on https://github.com/pandas-dev/pandas/pull/51466/files
264-
result_complex.reset_index(inplace=True) # noqa: PD002
264+
result_complex.reset_index(inplace=True)
265265
return self.compliant._with_native(
266266
select_columns_by_name(result_complex, new_names, implementation)
267267
).rename(dict(zip(self._keys, self._output_key_names)))

0 commit comments

Comments
 (0)