Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update ruff to v0.4.10 #703

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading