Skip to content

Commit 3f5641b

Browse files
committed
Let Ruff reformat the list.
1 parent cc82ec8 commit 3f5641b

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

test_shapefile.py

+20-5
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,6 @@ def test_record_oid():
969969
for i, record in enumerate(sf.iterRecords()):
970970
assert record.oid == i
971971

972-
973972
for i, shaperec in enumerate(sf.iterShapeRecords()):
974973
assert shaperec.record.oid == i
975974

@@ -981,18 +980,34 @@ def test_iterRecords_start_stop():
981980
by Reader..
982981
"""
983982

984-
985983
with shapefile.Reader("shapefiles/blockgroups") as sf:
986-
987984
N = len(sf)
988985

989986
# Arbitrary selection of start values
990-
for start in [0, 1, 2, 3, 5, 11, 17, 33, 51, 103, 170, 234, 435, 543, N-3, N-2, N-1]:
987+
for start in [
988+
0,
989+
1,
990+
2,
991+
3,
992+
5,
993+
11,
994+
17,
995+
33,
996+
51,
997+
103,
998+
170,
999+
234,
1000+
435,
1001+
543,
1002+
N - 3,
1003+
N - 2,
1004+
N - 1,
1005+
]:
9911006
for stop in range(start, len(sf)):
9921007
# test negative indexing from end, as well as
9931008
# positive values of stop, and its default
9941009
for stop_arg in (stop, stop - len(sf), None):
995-
for record in sf.iterRecords(start = start, stop = stop):
1010+
for record in sf.iterRecords(start=start, stop=stop):
9961011
assert record == sf.record(record.oid)
9971012

9981013

0 commit comments

Comments
 (0)