Skip to content

Commit

Permalink
chore(deps): update ruff to v0.4.10
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
renovate[bot] authored and JP-Ellis committed Jun 25, 2024
1 parent 99462a0 commit 82c331d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
stages: [pre-push]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
rev: v0.4.10
hooks:
- id: ruff
# Exclude python files in pact/** and tests/**, except for the
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ devel-test = [
"pytest-cov ~=5.0",
"testcontainers ~=3.0",
]
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.4.2"]
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.4.10"]

################################################################################
## Hatch Build Configuration
Expand Down
8 changes: 4 additions & 4 deletions tests/v3/compatibility_suite/test_v1_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_incorrect_request_is_made_to_provider() -> None:
)
def test_verifying_a_simple_http_request_via_a_pact_broker() -> None:
"""Verifying a simple HTTP request via a Pact broker."""
reset_broker_var.set(True) # noqa: FBT003
reset_broker_var.set(True)


@pytest.mark.skipif(
Expand All @@ -107,7 +107,7 @@ def test_verifying_a_simple_http_request_via_a_pact_broker() -> None:
)
def test_verifying_a_simple_http_request_via_a_pact_broker_with_publishing() -> None:
"""Verifying a simple HTTP request via a Pact broker with publishing."""
reset_broker_var.set(True) # noqa: FBT003
reset_broker_var.set(True)


@pytest.mark.skipif(
Expand All @@ -121,7 +121,7 @@ def test_verifying_a_simple_http_request_via_a_pact_broker_with_publishing() ->
)
def test_verifying_multiple_pact_files_via_a_pact_broker() -> None:
"""Verifying multiple Pact files via a Pact broker."""
reset_broker_var.set(True) # noqa: FBT003
reset_broker_var.set(True)


@pytest.mark.skipif(
Expand All @@ -135,7 +135,7 @@ def test_verifying_multiple_pact_files_via_a_pact_broker() -> None:
)
def test_incorrect_request_is_made_to_provider_via_a_pact_broker() -> None:
"""Incorrect request is made to provider via a Pact broker."""
reset_broker_var.set(True) # noqa: FBT003
reset_broker_var.set(True)


@pytest.mark.skipif(
Expand Down
2 changes: 2 additions & 0 deletions tests/v3/compatibility_suite/util/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def _(
),
headers=definition.headers if definition.headers else None, # type: ignore[arg-type]
data=definition.body.bytes if definition.body else None,
timeout=5,
)


Expand Down Expand Up @@ -213,6 +214,7 @@ def _(
),
headers=definition.headers if definition.headers else None, # type: ignore[arg-type]
data=definition.body.bytes if definition.body else None,
timeout=5,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/v3/compatibility_suite/util/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def _(
if reset_broker_var.get():
logger.debug("Resetting Pact broker")
pact_broker.reset()
reset_broker_var.set(False) # noqa: FBT003
reset_broker_var.set(False)
pact_broker.publish(pacts_dir)
verifier.broker_source(pact_broker.url)
yield pact_broker
Expand Down

0 comments on commit 82c331d

Please sign in to comment.