Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#8534)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Phillip Cloud <[email protected]>
  • Loading branch information
renovate[bot] and cpcloud authored Mar 8, 2024
1 parent 05fb9bd commit 16e8b95
Show file tree
Hide file tree
Showing 9 changed files with 262 additions and 282 deletions.
18 changes: 8 additions & 10 deletions ibis/backends/bigquery/udf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,10 @@ def visit_Compare(self, node):

@semicolon
def visit_AugAssign(self, node):
return "{} {}= {}".format(
self.visit(node.target),
self.visit(node.op),
self.visit(node.value),
)
target = self.visit(node.target)
op = self.visit(node.op)
value = self.visit(node.value)
return f"{target} {op}= {value}"

def visit_Module(self, node):
return "\n\n".join(map(self.visit, node.body))
Expand Down Expand Up @@ -437,11 +436,10 @@ def visit_If(self, node):
return "\n".join(lines)

def visit_IfExp(self, node):
return "({} ? {} : {})".format(
self.visit(node.test),
self.visit(node.body),
self.visit(node.orelse),
)
test = self.visit(node.test)
body = self.visit(node.body)
orelse = self.visit(node.orelse)
return f"({test} ? {body} : {orelse})"

def visit_Index(self, node):
return self.visit(node.value)
Expand Down
6 changes: 2 additions & 4 deletions ibis/backends/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,9 @@ def _get_backend_from_parts(parts: tuple[str, ...]) -> str | None:
return parts[index + 1]


def pytest_ignore_collect(path, config):
def pytest_ignore_collect(collection_path, path, config):
# get the backend path part
#
# path is a py.path.local object hence the conversion to Path first
backend = _get_backend_from_parts(Path(path).parts)
backend = _get_backend_from_parts(collection_path.parts)
if backend is None or backend not in _get_backend_names():
return False

Expand Down
4 changes: 1 addition & 3 deletions ibis/backends/dask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ def _validate_args(self, expr, limit, timecontext):
)
if not isinstance(expr, ir.Expr):
raise TypeError(
"`expr` has type {!r}, expected ibis.expr.types.Expr".format(
type(expr).__name__
)
f"`expr` has type {type(expr).__name__!r}, expected ibis.expr.types.Expr"
)

def compile(
Expand Down
4 changes: 1 addition & 3 deletions ibis/backends/impala/ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,7 @@ def compile(self):
partition = ""

scoped_name = self.scoped_name(self.table_name, self.database)
return "LOAD DATA INPATH '{}' {}INTO TABLE {}{}".format(
self.path, overwrite, scoped_name, partition
)
return f"LOAD DATA INPATH {self.path!r} {overwrite}INTO TABLE {scoped_name}{partition}"


class PartitionProperties(AlterTable):
Expand Down
4 changes: 1 addition & 3 deletions ibis/backends/pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ def execute(self, query, params=None, limit="default", **kwargs):

if not isinstance(query, ir.Expr):
raise TypeError(
"`query` has type {!r}, expected ibis.expr.types.Expr".format(
type(query).__name__
)
f"`query` has type {type(query).__name__!r}, expected ibis.expr.types.Expr"
)

params = params or {}
Expand Down
5 changes: 1 addition & 4 deletions ibis/backends/snowflake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ def current_database(self) -> str:

def _make_udf(self, name: str, defn) -> str:
signature = ", ".join(
"{} {}".format(
sg.to_identifier(argname, quoted=self.compiler.quoted).sql(self.name),
typ,
)
f"{sg.to_identifier(argname, quoted=self.compiler.quoted).sql(self.name)} {typ}"
for argname, typ in defn["inputs"].items()
)
return_type = defn["returns"]
Expand Down
10 changes: 3 additions & 7 deletions ibis/legacy/udf/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ def validate_input_type(input_type: list[dt.DataType], func: Callable) -> Signat

if declared_parameter_count != function_parameter_count:
raise TypeError(
"Function signature {!r} has {:d} parameters, "
"input_type has {:d}. These must match. Non-column "
f"Function signature {func.__name__!r} has {function_parameter_count:d} parameters, "
f"input_type has {declared_parameter_count:d}. These must match. Non-column "
"parameters must be defined as keyword only, i.e., "
"def foo(col, *, function_param).".format(
func.__name__,
function_parameter_count,
declared_parameter_count,
)
"def foo(col, *, function_param)."
)

return funcsig
Expand Down
467 changes: 232 additions & 235 deletions poetry.lock

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ datafusion==35.0.0 ; python_version >= "3.9" and python_version < "4.0"
db-dtypes==1.2.0 ; python_version >= "3.9" and python_version < "4.0"
debugpy==1.8.1 ; python_version >= "3.10" and python_version < "3.13"
decorator==5.1.1 ; python_version >= "3.9" and python_version < "4.0"
deltalake==0.15.3 ; python_version >= "3.9" and python_version < "4.0"
deltalake==0.16.0 ; python_version >= "3.9" and python_version < "4.0"
distlib==0.3.8 ; python_version >= "3.9" and python_version < "4.0"
distributed==2024.2.1 ; python_version >= "3.10" and python_version < "3.13"
duckdb==0.10.0 ; python_version >= "3.9" and python_version < "4.0"
Expand All @@ -71,19 +71,19 @@ google-api-core[grpc]==2.17.1 ; python_version >= "3.9" and python_version < "4.
google-auth-oauthlib==1.2.0 ; python_version >= "3.9" and python_version < "4.0"
google-auth==2.28.1 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-bigquery-storage==2.24.0 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-bigquery==3.17.2 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-bigquery==3.18.0 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-core==2.4.1 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-storage==2.14.0 ; python_version >= "3.9" and python_version < "4.0"
google-cloud-storage==2.15.0 ; python_version >= "3.9" and python_version < "4.0"
google-crc32c==1.5.0 ; python_version >= "3.9" and python_version < "4.0"
google-resumable-media==2.7.0 ; python_version >= "3.9" and python_version < "4.0"
googleapis-common-protos==1.62.0 ; python_version >= "3.9" and python_version < "4.0"
graphviz==0.20.1 ; python_version >= "3.9" and python_version < "4.0"
greenlet==3.0.3 ; python_version >= "3.9" and python_version < "4.0" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
griffe==0.41.1 ; python_version >= "3.10" and python_version < "3.13"
griffe==0.41.3 ; python_version >= "3.10" and python_version < "3.13"
grpcio-status==1.62.0 ; python_version >= "3.9" and python_version < "4.0"
grpcio==1.62.0 ; python_version >= "3.9" and python_version < "4.0"
humanize==4.9.0 ; python_version >= "3.9" and python_version < "4.0"
hypothesis==6.98.15 ; python_version >= "3.9" and python_version < "4.0"
hypothesis==6.98.17 ; python_version >= "3.9" and python_version < "4.0"
identify==2.5.35 ; python_version >= "3.9" and python_version < "4.0"
idna==3.6 ; python_version >= "3.9" and python_version < "4.0"
importlib-metadata==7.0.1 ; python_version >= "3.9" and python_version < "4.0"
Expand Down Expand Up @@ -146,7 +146,7 @@ pins[gcs]==0.8.4 ; python_version >= "3.9" and python_version < "4.0"
pkginfo==1.10.0 ; python_version >= "3.9" and python_version < "4.0"
platformdirs==3.11.0 ; python_version >= "3.9" and python_version < "4.0"
plotly==5.19.0 ; python_version >= "3.10" and python_version < "3.13"
plotnine==0.13.0 ; python_version >= "3.10" and python_version < "3.13"
plotnine==0.13.1 ; python_version >= "3.10" and python_version < "3.13"
pluggy==1.4.0 ; python_version >= "3.9" and python_version < "4.0"
plum-dispatch==2.3.2 ; python_version >= "3.10" and python_version < "3.13"
poetry-core==1.9.0 ; python_version >= "3.9" and python_version < "4.0"
Expand All @@ -161,7 +161,7 @@ proto-plus==1.23.0 ; python_version >= "3.9" and python_version < "4.0"
protobuf==4.25.3 ; python_version >= "3.9" and python_version < "4.0"
psutil==5.9.8 ; python_version >= "3.10" and python_version < "3.13"
psycopg2==2.9.9 ; python_version >= "3.9" and python_version < "4.0"
psygnal==0.9.5 ; python_version >= "3.10" and python_version < "3.13"
psygnal==0.10.0 ; python_version >= "3.10" and python_version < "3.13"
ptyprocess==0.7.0 ; python_version >= "3.9" and python_version < "4.0"
pure-eval==0.2.2 ; python_version >= "3.9" and python_version < "4.0"
pure-sasl==0.6.2 ; python_version >= "3.9" and python_version < "4.0"
Expand All @@ -175,7 +175,7 @@ pycparser==2.21 ; python_version >= "3.9" and python_version < "4.0"
pydantic-core==2.16.3 ; python_version >= "3.10" and python_version < "3.13"
pydantic==2.6.3 ; python_version >= "3.10" and python_version < "3.13"
pydata-google-auth==1.8.2 ; python_version >= "3.9" and python_version < "4.0"
pydeps==1.12.18 ; python_version >= "3.9" and python_version < "4.0"
pydeps==1.12.19 ; python_version >= "3.9" and python_version < "4.0"
pydruid[sqlalchemy]==0.6.6 ; python_version >= "3.9" and python_version < "4.0"
pyexasol[pandas]==0.25.2 ; python_version >= "3.9" and python_version < "4.0"
pygments==2.17.2 ; python_version >= "3.9" and python_version < "4.0"
Expand All @@ -184,7 +184,7 @@ pyjwt==2.8.0 ; python_version >= "3.9" and python_version < "4.0"
pymysql==1.1.0 ; python_version >= "3.9" and python_version < "4.0"
pyodbc==5.1.0 ; python_version >= "3.9" and python_version < "4.0"
pyopenssl==24.0.0 ; python_version >= "3.9" and python_version < "4.0"
pyparsing==3.1.1 ; python_version >= "3.10" and python_version < "3.13"
pyparsing==3.1.2 ; python_version >= "3.10" and python_version < "3.13"
pyproj==3.6.1 ; python_version >= "3.9" and python_version < "4.0"
pyproject-hooks==1.0.0 ; python_version >= "3.9" and python_version < "4.0"
pyshp==2.3.1 ; python_version >= "3.10" and python_version < "3.13"
Expand All @@ -210,7 +210,7 @@ pywin32==306 ; sys_platform == "win32" and platform_python_implementation != "Py
pyyaml==6.0.1 ; python_version >= "3.9" and python_version < "4.0"
pyzmq==25.1.2 ; python_version >= "3.10" and python_version < "3.13"
quartodoc==0.7.2 ; python_version >= "3.10" and python_version < "3.13"
rapidfuzz==3.6.1 ; python_version >= "3.9" and python_version < "4.0"
rapidfuzz==3.6.2 ; python_version >= "3.9" and python_version < "4.0"
referencing==0.33.0 ; python_version >= "3.10" and python_version < "3.13"
regex==2023.12.25 ; python_version >= "3.9" and python_version < "4.0"
requests-oauthlib==1.3.1 ; python_version >= "3.9" and python_version < "4.0"
Expand All @@ -220,7 +220,7 @@ requests[socks]==2.31.0 ; python_version >= "3.10" and python_version < "3.13"
rich==13.7.1 ; python_version >= "3.9" and python_version < "4.0"
rpds-py==0.18.0 ; python_version >= "3.10" and python_version < "3.13"
rsa==4.9 ; python_version >= "3.9" and python_version < "4"
ruff==0.3.0 ; python_version >= "3.9" and python_version < "4.0"
ruff==0.3.1 ; python_version >= "3.9" and python_version < "4.0"
scikit-learn==1.4.1.post1 ; python_version >= "3.10" and python_version < "3.13"
scipy==1.12.0 ; python_version >= "3.10" and python_version < "3.13"
scooby==0.9.2 ; python_version >= "3.10" and python_version < "3.13"
Expand All @@ -234,7 +234,7 @@ snowflake-connector-python==3.7.1 ; python_version >= "3.9" and python_version <
sortedcontainers==2.4.0 ; python_version >= "3.9" and python_version < "4.0"
soupsieve==2.5 ; python_version >= "3.10" and python_version < "3.13"
sphobjinv==2.3.1 ; python_version >= "3.10" and python_version < "3.13"
sqlalchemy==2.0.27 ; python_version >= "3.9" and python_version < "4.0"
sqlalchemy==2.0.28 ; python_version >= "3.9" and python_version < "4.0"
sqlglot==20.11.0 ; python_version >= "3.9" and python_version < "4.0"
stack-data==0.6.3 ; python_version >= "3.9" and python_version < "4.0"
statsmodels==0.14.1 ; python_version >= "3.10" and python_version < "3.13"
Expand All @@ -253,7 +253,7 @@ tqdm==4.66.2 ; python_version >= "3.9" and python_version < "4.0"
traitlets==5.14.1 ; python_version >= "3.9" and python_version < "4.0"
traittypes==0.2.1 ; python_version >= "3.10" and python_version < "3.13"
trino==0.328.0 ; python_version >= "3.9" and python_version < "4.0"
trove-classifiers==2024.2.23 ; python_version >= "3.9" and python_version < "4.0"
trove-classifiers==2024.3.3 ; python_version >= "3.9" and python_version < "4.0"
typing-extensions==4.10.0 ; python_version >= "3.9" and python_version < "4.0"
tzdata==2024.1 ; python_version >= "3.9" and python_version < "4.0"
tzlocal==5.2 ; python_version >= "3.9" and python_version < "4.0"
Expand Down

0 comments on commit 16e8b95

Please sign in to comment.