diff --git a/noxfile.py b/noxfile.py index 8329b2de8..de1b9b81d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,7 +20,7 @@ import nox -BLACK_VERSION = "black==23.12.1" +BLACK_VERSION = "black==24.10.0" ISORT_VERSION = "isort==5.13.2" LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"] @@ -50,7 +50,10 @@ def lint(session): "--fss", "--check-only", "--diff", - "--profile=google", + "--profile=black", + "--force-single-line-imports", + "--dont-order-by-type", + "--single-line-exclusions=typing", "-w=88", *LINT_PATHS, ) @@ -85,7 +88,10 @@ def format(session): session.run( "isort", "--fss", - "--profile=google", + "--profile=black", + "--force-single-line-imports", + "--dont-order-by-type", + "--single-line-exclusions=typing", "-w=88", *LINT_PATHS, ) diff --git a/tests/unit/test_connection_name.py b/tests/unit/test_connection_name.py index a62f88d5f..783e14fe3 100644 --- a/tests/unit/test_connection_name.py +++ b/tests/unit/test_connection_name.py @@ -14,14 +14,12 @@ import pytest # noqa F401 Needed to run the tests -# fmt: off +from google.cloud.sql.connector.connection_name import ( + _parse_connection_name_with_domain_name, +) from google.cloud.sql.connector.connection_name import _parse_connection_name -from google.cloud.sql.connector.connection_name import \ - _parse_connection_name_with_domain_name from google.cloud.sql.connector.connection_name import ConnectionName -# fmt: on - def test_ConnectionName() -> None: conn_name = ConnectionName("project", "region", "instance")