From 29c274e4acfd155e87e216443c0180792eea4e26 Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Thu, 6 Nov 2025 15:28:12 +0100 Subject: [PATCH] Bump dependencies --- .pre-commit-config.yaml | 6 +++--- bin/make-unasync | 1 - pyproject.toml | 7 ++----- testkitbackend/_async/requests.py | 1 - testkitbackend/_sync/requests.py | 1 - tests/integration/test_readme.py | 4 ++-- tests/unit/common/test_api.py | 1 - 7 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd9eec63d..60056a57b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0 hooks: - id: check-case-conflict - id: check-docstring-first @@ -27,11 +27,11 @@ repos: types_or: [ python, pyi ] language: system - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: ff671d6a030a3141634793e6d1e8909ab6091830 + rev: ff671d6a030a3141634793e6d1e8909ab6091830 # v1.0.0 hooks: - id: sphinx-lint - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: aad66557af3b56ba6d4d69cd1b6cba87cef50cbb # v0.14.3 hooks: - id: ruff-format - id: ruff-check diff --git a/bin/make-unasync b/bin/make-unasync index ef08f25c8..7c430f952 100755 --- a/bin/make-unasync +++ b/bin/make-unasync @@ -25,7 +25,6 @@ import tokenize as std_tokenize from pathlib import Path import isort -import isort.files import unasync diff --git a/pyproject.toml b/pyproject.toml index b875838ac..d7e34bb51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ pandas = [ "pandas >= 1.1.0, < 3.0.0", "numpy >= 1.21.2, < 3.0.0", ] -pyarrow = ["pyarrow >= 6.0.0, < 22.0.0"] +pyarrow = ["pyarrow >= 6.0.0, < 23.0.0"] [build-system] @@ -151,7 +151,7 @@ dep-project-dependencies = [ "pytz", "numpy >= 1.7.0, < 3.0.0", "pandas >= 1.1.0, < 3.0.0", - "pyarrow >= 6.0.0, < 22.0.0", + "pyarrow >= 6.0.0, < 23.0.0", ] [tool.setuptools.dynamic] @@ -286,9 +286,6 @@ extend-ignore = [ # needs fixing in ruff to work with typing.Protocol # https://github.com/astral-sh/ruff/issues/13307 "FURB180", - - # rule is deprected and suggests not recommended practice - "UP038", ] select = [ # ruff diff --git a/testkitbackend/_async/requests.py b/testkitbackend/_async/requests.py index 086aca2b9..21ab28f70 100644 --- a/testkitbackend/_async/requests.py +++ b/testkitbackend/_async/requests.py @@ -27,7 +27,6 @@ from freezegun import freeze_time import neo4j -import neo4j.api import neo4j.auth_management from neo4j._async_compat.util import AsyncUtil from neo4j._routing import RoutingTable diff --git a/testkitbackend/_sync/requests.py b/testkitbackend/_sync/requests.py index a319bc0c1..1f886c97f 100644 --- a/testkitbackend/_sync/requests.py +++ b/testkitbackend/_sync/requests.py @@ -27,7 +27,6 @@ from freezegun import freeze_time import neo4j -import neo4j.api import neo4j.auth_management from neo4j._async_compat.util import Util from neo4j._routing import RoutingTable diff --git a/tests/integration/test_readme.py b/tests/integration/test_readme.py index 0ed451553..19ed03afa 100644 --- a/tests/integration/test_readme.py +++ b/tests/integration/test_readme.py @@ -74,9 +74,9 @@ def test_readme_contains_example(): test_path = Path(__file__) readme_path = test_path.parents[2] / "README.rst" - with test_path.open("r") as fd: + with test_path.open("r", encoding="utf-8") as fd: test_content = fd.read() - with readme_path.open("r") as fd: + with readme_path.open("r", encoding="utf-8") as fd: readme_content = fd.read() stripped_test_content = "" diff --git a/tests/unit/common/test_api.py b/tests/unit/common/test_api.py index ea2c1a2c4..dbe34036c 100644 --- a/tests/unit/common/test_api.py +++ b/tests/unit/common/test_api.py @@ -21,7 +21,6 @@ import pytest import neo4j._api -import neo4j.api from neo4j.addressing import Address from neo4j.exceptions import ConfigurationError