Skip to content

Commit 0cc1669

Browse files
authored
Merge pull request #331 from JamesParrott/pyshp-3.0.0-alpha-pylint-suppress-TODO
Pyshp 3.0.0 alpha pylint suppress todo
2 parents 3e0a7ca + f442a6f commit 0cc1669

File tree

3 files changed

+166
-162
lines changed

3 files changed

+166
-162
lines changed

.github/workflows/run_checks_build_and_test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ 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: |
32-
pylint --disable=R,C test_shapefile.py src/shapefile.py
31+
pylint --disable=C test_shapefile.py src/shapefile.py
3332
3433
build_wheel_and_sdist:
3534
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,27 @@ load-plugins=[
112112
"pylint_per_file_ignores",
113113
]
114114

115-
[tool.pylint.'MESSAGES CONTROL']
116115
# Silence warning: shapefile.py:2076:20: W0212: Access to a protected
117116
# member _from_geojson of a client class (protected-access)
118-
#
117+
# Silence remarks:
118+
# src\shapefile.py:338:0: R0914: Too many local variables (21/15) (too-many-locals)
119+
# src\shapefile.py:338:0: R0912: Too many branches (24/12) (too-many-branches)
120+
# src\shapefile.py:338:0: R0915: Too many statements (52/50) (too-many-statements)
121+
# src\shapefile.py:470:0: R0902: Too many instance attributes (9/7) (too-many-instance-attributes)
122+
# src\shapefile.py:471:4: R0913: Too many arguments (6/5) (too-many-arguments)
123+
# src\shapefile.py:471:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
124+
# src\shapefile.py:506:4: R0911: Too many return statements (10/6) (too-many-return-statements)
125+
# src\shapefile.py:878:0: R0903: Too few public methods (0/2) (too-few-public-methods)
126+
# src\shapefile.py:1981:0: R0904: Too many public methods (23/20) (too-many-public-methods)
127+
# src\shapefile.py:2117:17: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
119128
# Silence warnings: test_shapefile.py:{783,786,799,803,06,1195}:19:
120129
# W0212: Access to a protected member _offsets of a
121130
# client class (protected-access)
122131
#
123132
# Toml multi-line string used instead of array due to:
124133
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160
125-
per-file-ignores = """
126-
shapefile.py:W0212
127-
test_shapefile.py:W0212
128-
"""
134+
[tool.pylint.'messages control']
135+
per-file-ignores = [
136+
"/src/shapefile.py:W0212,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0917,R1732",
137+
"test_shapefile.py:W0212,R1732",
138+
]

0 commit comments

Comments
 (0)