Skip to content

Commit

Permalink
chore(deps): update ruff to v0.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
renovate[bot] authored and JP-Ellis committed Nov 25, 2024
1 parent 71666b7 commit 7f8aa98
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
- '@biomejs/[email protected]'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.0
hooks:
- id: ruff
# Exclude python files in pact/** and tests/**, except for the
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ devel-test = [
"pytest-cov ~=6.0",
"testcontainers ~=4.0",
]
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.7.4"]
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.8.0"]

################################################################################
## Hatch Build Configuration
Expand Down Expand Up @@ -276,8 +276,6 @@ ignore = [
"D200", # Require single line docstrings to be on one line.
"D203", # Require blank line before class docstring
"D212", # Multi-line docstring summary must start at the first line
"ANN101", # `self` must be typed
"ANN102", # `cls` must be typed
"FIX002", # Forbid TODO in comments
"TD002", # Assign someone to 'TODO' comments

Expand Down
24 changes: 12 additions & 12 deletions src/pact/v3/generate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@
#
# <https://github.com/pact-foundation/pact-reference/blob/303073c/rust/pact_models/src/generators/mod.rs#L121>
__all__ = [
"int",
"integer",
"float",
"Generator",
"bool",
"boolean",
"date",
"datetime",
"decimal",
"float",
"hex",
"hexadecimal",
"int",
"integer",
"mock_server_url",
"provider_state",
"regex",
"str",
"string",
"regex",
"uuid",
"date",
"time",
"datetime",
"timestamp",
"bool",
"boolean",
"provider_state",
"mock_server_url",
"Generator",
"uuid",
]

# We prevent users from importing from this module to avoid shadowing built-ins.
Expand Down
4 changes: 2 additions & 2 deletions src/pact/v3/interaction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
from pact.v3.interaction._sync_message_interaction import SyncMessageInteraction

__all__ = [
"Interaction",
"HttpInteraction",
"AsyncMessageInteraction",
"HttpInteraction",
"Interaction",
"SyncMessageInteraction",
]
34 changes: 17 additions & 17 deletions src/pact/v3/match/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,31 +82,31 @@
#
# <https://github.com/pact-foundation/pact-reference/blob/303073c/rust/pact_models/src/matchingrules/mod.rs#L62>
__all__ = [
"Matcher",
"array_containing",
"bool",
"boolean",
"date",
"datetime",
"decimal",
"each_key_matches",
"each_like",
"each_value_matches",
"float",
"includes",
"int",
"integer",
"float",
"decimal",
"like",
"none",
"null",
"number",
"regex",
"str",
"string",
"regex",
"uuid",
"bool",
"boolean",
"date",
"time",
"datetime",
"timestamp",
"none",
"null",
"type",
"like",
"each_like",
"includes",
"array_containing",
"each_key_matches",
"each_value_matches",
"Matcher",
"uuid",
]

_T = TypeVar("_T")
Expand Down
4 changes: 2 additions & 2 deletions tests/v3/compatibility_suite/util/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ def _(
expected = {key: value}
actual = pact_file["interactions"][n - 1]["request"]["headers"]
assert expected.keys() == actual.keys()
for k in expected:
assert expected[k] == actual[k] or [expected[k]] == actual[k]
for k, v in expected.items():
assert v == actual[k] or [v] == actual[k]


def the_nth_interaction_request_content_type_will_be(stacklevel: int = 1) -> None:
Expand Down

0 comments on commit 7f8aa98

Please sign in to comment.