Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#9073)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Apr 30, 2024
1 parent 8508e3d commit 3d5ae89
Show file tree
Hide file tree
Showing 7 changed files with 443 additions and 445 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ def __init__(self, backend: BaseBackend):
def __getitem__(self, name) -> ir.Table:
try:
return self._backend.table(name)
except Exception as exc: # noqa: BLE001
except Exception as exc:
raise KeyError(name) from exc

def __getattr__(self, name) -> ir.Table:
if name.startswith("_"):
raise AttributeError(name)
try:
return self._backend.table(name)
except Exception as exc: # noqa: BLE001
except Exception as exc:
raise AttributeError(name) from exc

def __iter__(self) -> Iterator[str]:
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _get_backend_from_parts(parts: tuple[str, ...]) -> str | None:
return parts[index + 1]


def pytest_ignore_collect(collection_path, path, config):
def pytest_ignore_collect(collection_path, config):
# get the backend path part
backend = _get_backend_from_parts(collection_path.parts)
if backend is None or backend not in _get_backend_names():
Expand Down
6 changes: 3 additions & 3 deletions ibis/backends/postgres/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def test_cumulative_simple_window(alltypes, func, df):
col = t.double_col - f().over(ibis.cumulative_window())
expr = t.select(col.name("double_col"))
result = expr.execute().double_col
expected = df.double_col - getattr(df.double_col, "cum%s" % func)()
expected = df.double_col - getattr(df.double_col, f"cum{func}")()
tm.assert_series_equal(result, expected)


Expand All @@ -756,7 +756,7 @@ def test_cumulative_partitioned_window(alltypes, func, df):
expr = t.select((t.double_col - f().over(window)).name("double_col"))
result = expr.execute().double_col
expected = df.groupby(df.string_col).double_col.transform(
lambda c: c - getattr(c, "cum%s" % func)()
lambda c: c - getattr(c, f"cum{func}")()
)
tm.assert_series_equal(result, expected)

Expand All @@ -769,7 +769,7 @@ def test_cumulative_ordered_window(alltypes, func, df):
f = getattr(t.double_col, func)
expr = t.select((t.double_col - f().over(window)).name("double_col"))
result = expr.execute().double_col
expected = df.double_col - getattr(df.double_col, "cum%s" % func)()
expected = df.double_col - getattr(df.double_col, f"cum{func}")()
tm.assert_series_equal(result, expected)


Expand Down
4 changes: 2 additions & 2 deletions ibis/backends/risingwave/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def test_cumulative_simple_window(alltypes, func, df):
col = t.double_col - f().over(ibis.cumulative_window())
expr = t.select(col.name("double_col"))
result = expr.execute().double_col
expected = df.double_col - getattr(df.double_col, "cum%s" % func)()
expected = df.double_col - getattr(df.double_col, f"cum{func}")()
tm.assert_series_equal(result, expected)


Expand All @@ -558,7 +558,7 @@ def test_cumulative_ordered_window(alltypes, func, df):
f = getattr(t.double_col, func)
expr = t.select((t.double_col - f().over(window)).name("double_col"))
result = expr.execute().double_col
expected = df.double_col - getattr(df.double_col, "cum%s" % func)()
expected = df.double_col - getattr(df.double_col, f"cum{func}")()
tm.assert_series_equal(result, expected)


Expand Down
2 changes: 1 addition & 1 deletion ibis/examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __getattr__(name: str) -> Example:

example = example_class(name=name, help=description)
setattr(ibis.examples, name, example)
except Exception as e: # noqa: BLE001
except Exception as e:
raise AttributeError(name) from e
else:
return example
Loading

0 comments on commit 3d5ae89

Please sign in to comment.