Skip to content

Commit

Permalink
chore(deps): update ruff to v0.5.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 Jul 4, 2024
1 parent 08a3a9d commit d00ca78
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 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.10
rev: v0.5.0
hooks:
- id: ruff
# Exclude python files in pact/** and tests/**, except for the
Expand Down
4 changes: 2 additions & 2 deletions docs/scripts/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def process_markdown(
]
files = sorted(
Path(p)
for p in subprocess.check_output(
["git", "ls-files", src], # noqa: S603, S607
for p in subprocess.check_output( # noqa: S603
["git", "ls-files", src], # noqa: S607
)
.decode("utf-8")
.splitlines()
Expand Down
4 changes: 2 additions & 2 deletions docs/scripts/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def process_python(
ignore_spec = PathSpec.from_lines("gitwildmatch", ignore or [])
files = sorted(
Path(p)
for p in subprocess.check_output(
["git", "ls-files", src], # noqa: S603, S607
for p in subprocess.check_output( # noqa: S603
["git", "ls-files", src], # noqa: S607
)
.decode("utf-8")
.splitlines()
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.10"]
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.5.0"]

################################################################################
## Hatch Build Configuration
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 @@ -647,8 +647,8 @@ def _(
expected = {key: value}
actual = pact_file["interactions"][n - 1]["request"]["headers"]
assert expected.keys() == actual.keys()
for key in expected:
assert expected[key] == actual[key] or [expected[key]] == actual[key]
for k in expected:
assert expected[k] == actual[k] or [expected[k]] == actual[k]


def the_nth_interaction_request_content_type_will_be(stacklevel: int = 1) -> None:
Expand Down
8 changes: 4 additions & 4 deletions tests/v3/compatibility_suite/util/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ def publish(self, directory: Path | str, version: str | None = None) -> None:

cmd.extend(["--consumer-app-version", version or next_version()])

subprocess.run(
cmd, # noqa: S603
subprocess.run( # noqa: S603
cmd,
encoding="utf-8",
check=True,
)
Expand Down Expand Up @@ -580,8 +580,8 @@ def _(

def start_provider(provider_dir: str | Path) -> Generator[URL, None, None]: # noqa: C901
"""Start the provider app with the given interactions."""
process = subprocess.Popen(
[ # noqa: S603
process = subprocess.Popen( # noqa: S603
[
sys.executable,
Path(__file__),
str(provider_dir),
Expand Down

0 comments on commit d00ca78

Please sign in to comment.