From 47201021ce7720c485fe415dbdee853f7f7dd02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ezequiel=20Leonardo=20Casta=C3=B1o?= <14986783+ELC@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:11:56 -0300 Subject: [PATCH] refactor: fix ruff ARG checks --- narwhals/_pandas_like/dataframe.py | 2 +- narwhals/_pandas_like/series.py | 2 +- pyproject.toml | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/narwhals/_pandas_like/dataframe.py b/narwhals/_pandas_like/dataframe.py index aade22c20..9f596b3f5 100644 --- a/narwhals/_pandas_like/dataframe.py +++ b/narwhals/_pandas_like/dataframe.py @@ -134,7 +134,7 @@ def iter_rows( self, *, named: bool = False, - buffer_size: int = 512, + buffer_size: int = 512, # noqa: ARG002 ) -> Iterator[list[tuple[Any, ...]]] | Iterator[list[dict[str, Any]]]: """ NOTE: diff --git a/narwhals/_pandas_like/series.py b/narwhals/_pandas_like/series.py index 486ee0727..c84673c46 100644 --- a/narwhals/_pandas_like/series.py +++ b/narwhals/_pandas_like/series.py @@ -532,7 +532,7 @@ def is_sorted(self: Self, *, descending: bool = False) -> bool: else: return self._native_series.is_monotonic_increasing # type: ignore[no-any-return] - def value_counts(self: Self, *, sort: bool = False, parallel: bool = False) -> Any: + def value_counts(self: Self, *, sort: bool = False, parallel: bool = False) -> Any: # noqa: ARG002 """Parallel is unused, exists for compatibility""" from narwhals._pandas_like.dataframe import PandasDataFrame diff --git a/pyproject.toml b/pyproject.toml index c80645163..63737b3fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,8 +47,6 @@ lint.ignore = [ 'A003', 'ANN101', 'ANN401', - 'ARG002', # todo: enable - 'ARG003', # todo: enable 'C901', 'COM812', 'D',