-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some Pylint warnings. Silence W0212 in config using pylint_per_fi…
…le_ignore. Give credit. Requiring pytest >= 3.7 means pathib2 will always be available. Pylint needs the deps installed, of the files it checks Dedupe pip install Setup pylint in CI
- Loading branch information
1 parent
dca3b84
commit 31798da
Showing
5 changed files
with
60 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.pylint.MASTER] | ||
load-plugins=[ | ||
"pylint_per_file_ignores", | ||
] | ||
|
||
[tool.pylint.'MESSAGES CONTROL'] | ||
# Silence warning: shapefile.py:2076:20: W0212: Access to a protected | ||
# member _from_geojson of a client class (protected-access) | ||
# | ||
# Silence warnings: test_shapefile.py:{783,786,799,803,06,1195}:19: | ||
# W0212: Access to a protected member _offsets of a | ||
# client class (protected-access) | ||
# | ||
# Toml multi-line string used instead of array due to: | ||
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160 | ||
per-file-ignores = """ | ||
shapefile.py:W0212 | ||
test_shapefile.py:W0212 | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pytest | ||
pytest >= 3.7 | ||
setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters