Skip to content

Commit ac0142a

Browse files
committed
Allow pylint step to fail CI. Suppress undefined-loop-variable
1 parent f51f0f2 commit ac0142a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/run_checks_build_and_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
pip install pytest pylint pylint-per-file-ignores
2828
pip install -e .
2929
- name: run Pylint for errors and warnings only
30-
continue-on-error: true
3130
run: |
3231
pylint --disable=C test_shapefile.py src/shapefile.py
3332

src/shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def __geo_interface__(self) -> GeoJsonShapeT:
558558
ps = part
559559

560560
# coordinates.append([tuple(p) for p in self.points[part:]])
561-
coordinates.append(list(self.points[part:]))
561+
coordinates.append(list(self.points[part:])) # pylint: disable=undefined-loop-variable (assert len(self.parts) >1)
562562

563563
return {"type": "MultiLineString", "coordinates": coordinates}
564564

0 commit comments

Comments
 (0)