Skip to content

Commit f3ecdf3

Browse files
committed
refactor(test_docscrape.py): ruff formatting
1 parent 152ea6e commit f3ecdf3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

numpydoc/tests/test_docscrape.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def test_extended_summary(doc):
187187
def test_parameters(doc):
188188
assert len(doc["Parameters"]) == 4
189189
names = [n for n, _, _ in doc["Parameters"]]
190-
assert all(a == b for a, b in zip(names, ["mean", "cov", "shape", "dtype"], strict=True))
190+
assert all(
191+
a == b for a, b in zip(names, ["mean", "cov", "shape", "dtype"], strict=True)
192+
)
191193

192194
arg, arg_type, desc = doc["Parameters"][1]
193195
assert arg_type == "(N, N) ndarray"
@@ -242,7 +244,9 @@ def test_yields():
242244
("b", "int", "bananas."),
243245
("", "int", "unknowns."),
244246
]
245-
for (arg, arg_type, desc), (arg_, arg_type_, end) in zip(section, truth, strict=True):
247+
for (arg, arg_type, desc), (arg_, arg_type_, end) in zip(
248+
section, truth, strict=True
249+
):
246250
assert arg == arg_
247251
assert arg_type == arg_type_
248252
assert desc[0].startswith("The number of")
@@ -253,7 +257,9 @@ def test_sent():
253257
section = doc_sent["Receives"]
254258
assert len(section) == 2
255259
truth = [("b", "int", "bananas."), ("c", "int", "oranges.")]
256-
for (arg, arg_type, desc), (arg_, arg_type_, end) in zip(section, truth, strict=True):
260+
for (arg, arg_type, desc), (arg_, arg_type_, end) in zip(
261+
section, truth, strict=True
262+
):
257263
assert arg == arg_
258264
assert arg_type == arg_type_
259265
assert desc[0].startswith("The number of")

0 commit comments

Comments
 (0)