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.5.0 #718

Merged
merged 1 commit into from
Jul 4, 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.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
Loading