Skip to content

Commit 975414f

Browse files
chore(deps): update ruff to v0.14.10 (#1414)
Signed-off-by: JP-Ellis <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JP-Ellis <[email protected]>
1 parent b588fd8 commit 975414f

File tree

23 files changed

+184
-98
lines changed

23 files changed

+184
-98
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- id: biome-check
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: v0.14.9
42+
rev: v0.14.10
4343
hooks:
4444
- id: ruff-check
4545
exclude: |

docs/scripts/markdown.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def process_markdown(
7575
]
7676
files = sorted(
7777
Path(p)
78-
for p in subprocess.check_output( # noqa: S603
78+
for p in subprocess # noqa: S603
79+
.check_output(
7980
["git", "ls-files", src], # noqa: S607
8081
)
8182
.decode("utf-8")

docs/scripts/other.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
ALL_FILES = sorted(
3737
map(
3838
Path,
39-
subprocess.check_output(["git", "ls-files", SRC_ROOT]) # noqa: S603, S607
39+
subprocess # noqa: S603
40+
.check_output(["git", "ls-files", SRC_ROOT]) # noqa: S607
4041
.decode("utf-8")
4142
.splitlines(),
4243
),

docs/scripts/python.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def process_python(
165165
ignore_spec = PathSpec.from_lines("gitwildmatch", ignore or [])
166166
files = sorted(
167167
Path(p)
168-
for p in subprocess.check_output( # noqa: S603
168+
for p in subprocess # noqa: S603
169+
.check_output(
169170
["git", "ls-files", src], # noqa: S607
170171
)
171172
.decode("utf-8")

examples/catalog/multipart_matching_rules/test_consumer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def test_multipart_upload_with_matching_rules(pact: Pact) -> None:
133133

134134
# Define the interaction with matching rules
135135
(
136-
pact.upon_receiving("a multipart upload with JSON metadata and image")
136+
pact
137+
.upon_receiving("a multipart upload with JSON metadata and image")
137138
.with_request("POST", "/upload")
138139
.with_header(
139140
"Content-Type",

examples/http/aiohttp_and_flask/test_consumer.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ async def test_get_user(pact: Pact) -> None:
7070
"created_on": match.datetime(),
7171
}
7272
(
73-
pact.upon_receiving("A user request")
73+
pact
74+
.upon_receiving("A user request")
7475
.given("the user exists", id=123, name="Alice")
7576
.with_request("GET", "/users/123")
7677
.will_respond_with(200)
@@ -94,7 +95,8 @@ async def test_get_unknown_user(pact: Pact) -> None:
9495
"""
9596
response = {"detail": "User not found"}
9697
(
97-
pact.upon_receiving("A request for an unknown user")
98+
pact
99+
.upon_receiving("A request for an unknown user")
98100
.given("the user doesn't exist", id=123)
99101
.with_request("GET", "/users/123")
100102
.will_respond_with(404)
@@ -126,7 +128,8 @@ async def test_create_user(pact: Pact) -> None:
126128
}
127129

128130
(
129-
pact.upon_receiving("A request to create a new user")
131+
pact
132+
.upon_receiving("A request to create a new user")
130133
.with_request("POST", "/users")
131134
.with_body(payload, content_type="application/json")
132135
.will_respond_with(201)
@@ -150,7 +153,8 @@ async def test_delete_user(pact: Pact) -> None:
150153
correctly.
151154
"""
152155
(
153-
pact.upon_receiving("A user deletion request")
156+
pact
157+
.upon_receiving("A user deletion request")
154158
.given("the user exists", id=124, name="Bob")
155159
.with_request("DELETE", "/users/124")
156160
.will_respond_with(204)

examples/http/requests_and_fastapi/test_consumer.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def test_get_user(pact: Pact) -> None:
6969
"created_on": match.datetime(),
7070
}
7171
(
72-
pact.upon_receiving("A user request")
72+
pact
73+
.upon_receiving("A user request")
7374
.given("the user exists", id=123, name="Alice")
7475
.with_request("GET", "/users/123")
7576
.will_respond_with(200)
@@ -94,7 +95,8 @@ def test_get_unknown_user(pact: Pact) -> None:
9495
"""
9596
response = {"detail": "User not found"}
9697
(
97-
pact.upon_receiving("A request for an unknown user")
98+
pact
99+
.upon_receiving("A request for an unknown user")
98100
.given("the user doesn't exist", id=123)
99101
.with_request("GET", "/users/123")
100102
.will_respond_with(404)
@@ -127,7 +129,8 @@ def test_create_user(pact: Pact) -> None:
127129
}
128130

129131
(
130-
pact.upon_receiving("A request to create a new user")
132+
pact
133+
.upon_receiving("A request to create a new user")
131134
.with_request("POST", "/users")
132135
.with_body(payload, content_type="application/json")
133136
.will_respond_with(201)
@@ -149,7 +152,8 @@ def test_delete_user(pact: Pact) -> None:
149152
correctly.
150153
"""
151154
(
152-
pact.upon_receiving("A user deletion request")
155+
pact
156+
.upon_receiving("A user deletion request")
153157
.given("the user exists", id=124, name="Bob")
154158
.with_request("DELETE", "/users/124")
155159
.will_respond_with(204)

examples/plugins/protobuf/test_consumer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def test_get_person_by_id(pact: Pact) -> None:
7575
expected_protobuf_data = alice.SerializeToString()
7676

7777
(
78-
pact.upon_receiving("a request to get person by ID")
78+
pact
79+
.upon_receiving("a request to get person by ID")
7980
.given("person with the given ID exists", user_id=1)
8081
.with_request("GET", "/person/1")
8182
.will_respond_with(200)
@@ -118,7 +119,8 @@ def test_get_nonexistent_person(pact: Pact) -> None:
118119
code with an appropriate error message as a JSON response.
119120
"""
120121
(
121-
pact.upon_receiving("a request to get non-existent person")
122+
pact
123+
.upon_receiving("a request to get non-existent person")
122124
.given("person with the given ID does not exist", user_id=999)
123125
.with_request("GET", "/person/999")
124126
.will_respond_with(404)

pact-python-cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ requires-python = ">=3.10"
5454
[dependency-groups]
5555
# Linting and formatting tools use a more narrow specification to ensure
5656
# developper consistency. All other dependencies are as above.
57-
dev = ["ruff==0.14.9", { include-group = "test" }, { include-group = "types" }]
57+
dev = ["ruff==0.14.10", { include-group = "test" }, { include-group = "types" }]
5858
test = ["pytest-cov~=7.0", "pytest~=9.0"]
5959
types = ["mypy==1.19.1"]
6060

pact-python-ffi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies = ["cffi~=2.0"]
4141
"Repository" = "https://github.com/pact-foundation/pact-python"
4242

4343
[dependency-groups]
44-
dev = ["ruff==0.14.9", { include-group = "test" }, { include-group = "types" }]
44+
dev = ["ruff==0.14.10", { include-group = "test" }, { include-group = "types" }]
4545
test = ["pytest-cov~=7.0", "pytest~=9.0"]
4646
types = ["mypy==1.19.1", "typing-extensions~=4.0"]
4747

0 commit comments

Comments
 (0)