diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8a3e5b7d5..f035c7546b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: additional_dependencies: ["@biomejs/biome@1.8.2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 + rev: v0.6.9 hooks: - id: ruff # Exclude python files in pact/** and tests/**, except for the diff --git a/pyproject.toml b/pyproject.toml index 24616c25c4..c5fabe26bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,7 @@ devel-test = [ "pytest-cov ~=5.0", "testcontainers ~=3.0", ] -devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.6.5"] +devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.6.9"] ################################################################################ ## Hatch Build Configuration diff --git a/tests/v3/compatibility_suite/test_v3_consumer.py b/tests/v3/compatibility_suite/test_v3_consumer.py index f2f218a3fb..bfc7de169b 100644 --- a/tests/v3/compatibility_suite/test_v3_consumer.py +++ b/tests/v3/compatibility_suite/test_v3_consumer.py @@ -47,9 +47,9 @@ def test_supports_data_for_provider_states() -> None: "an integration is being defined for a consumer test", target_fixture="pact_interaction", ) -def an_integration_is_being_defined_for_a_consumer_test() -> ( - Generator[PactInteractionTuple[HttpInteraction], Any, None] -): +def an_integration_is_being_defined_for_a_consumer_test() -> Generator[ + PactInteractionTuple[HttpInteraction], Any, None +]: """An integration is being defined for a consumer test.""" pact = Pact("consumer", "provider") pact.with_specification("V3") diff --git a/tests/v3/compatibility_suite/test_v4_consumer.py b/tests/v3/compatibility_suite/test_v4_consumer.py index de70ea6f04..c6e00aef05 100644 --- a/tests/v3/compatibility_suite/test_v4_consumer.py +++ b/tests/v3/compatibility_suite/test_v4_consumer.py @@ -62,9 +62,9 @@ def test_supports_adding_comments() -> None: "an HTTP interaction is being defined for a consumer test", target_fixture="pact_interaction", ) -def an_http_interaction_is_being_defined_for_a_consumer_test() -> ( - Generator[PactInteractionTuple[HttpInteraction], Any, None] -): +def an_http_interaction_is_being_defined_for_a_consumer_test() -> Generator[ + PactInteractionTuple[HttpInteraction], Any, None +]: """An HTTP interaction is being defined for a consumer test.""" pact = Pact("consumer", "provider") pact.with_specification("V4")