diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed34148..2c8970b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.22 + rev: v0.16.0 hooks: - id: ruff - id: ruff-format diff --git a/pyprql/tests/test_magic.py b/pyprql/tests/test_magic.py index c3442cb..c1051ba 100644 --- a/pyprql/tests/test_magic.py +++ b/pyprql/tests/test_magic.py @@ -396,7 +396,7 @@ def test_json_in_select(ip): def test_close_connection(ip): # TODO: change this to testing run_prql connections = run_sql(ip, "%sql -l") - connection_name = list(connections)[0] + connection_name = next(iter(connections)) run_sql(ip, f"%sql -x {connection_name}") connections_afterward = run_sql(ip, "%sql -l") assert connection_name not in connections_afterward