Skip to content

Commit 9703028

Browse files
committed
Bump ruff up to latest
1 parent 34ff1fd commit 9703028

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ ignore = [
157157
"UP006", # We support old typing constructs at runtime
158158
"UP007", # We support old typing constructs at runtime
159159
"UP035", # We support old typing constructs at runtime
160-
"UP038", # Dubious rule
161160
"UP045", # We support old typing constructs at runtime
162161
]
163162

tests/test_disambiguators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class A:
162162
def test_disambiguation(cl_and_vals_a, cl_and_vals_b):
163163
"""Disambiguation should work when there are unique required fields."""
164164
cl_a, vals_a, kwargs_a = cl_and_vals_a
165-
cl_b, vals_b, kwargs_b = cl_and_vals_b
165+
cl_b, _, _ = cl_and_vals_b
166166
c = Converter()
167167

168168
req_a = {a.name for a in fields(cl_a)}

tests/test_generics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def test_raises_if_no_generic_params_supplied(
175175

176176
with pytest.raises(
177177
StructureHandlerNotFoundError,
178-
match="Unsupported type: ~T. Register a structure hook for it.|Missing type for generic argument T, specify it when structuring.",
178+
match=r"Unsupported type: ~T. Register a structure hook for it.|Missing type for generic argument T, specify it when structuring.",
179179
) as exc:
180180
converter.structure(asdict(data), TClass)
181181

tests/test_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_structuring_dicts_opts(dict_and_type, data):
211211
@given(dicts_of_primitives)
212212
def test_stringifying_dicts(dict_and_type):
213213
converter = BaseConverter()
214-
d, t = dict_and_type
214+
d, _ = dict_and_type
215215

216216
converted = converter.structure(d, Dict[str, str])
217217

@@ -267,7 +267,7 @@ def test_structuring_lists_of_opt(list_and_type, detailed_validation: bool) -> N
267267
def test_stringifying_lists_of_opt(list_and_type):
268268
"""Test structuring Optional primitive types into strings."""
269269
converter = BaseConverter()
270-
lst, t = list_and_type
270+
lst, _ = list_and_type
271271

272272
lst.append(None)
273273

0 commit comments

Comments
 (0)