-
-
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.
Merge pull request #303 from JamesParrott/Synced_with_PyShp
Run Pylint on test_shapefile.py, suppress W0212 for now, and make changes to silence other warnings from it
- Loading branch information
Showing
5 changed files
with
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,19 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
|
||
pylint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: install Pylint and plugin | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest pylint pylint-per-file-ignores | ||
- name: run Pylint for errors and warnings only, on test_shapefile.py | ||
run: | | ||
pylint --disable=R,C test_shapefile.py | ||
test_on_old_Pythons: | ||
strategy: | ||
fail-fast: false | ||
|
@@ -60,6 +73,8 @@ jobs: | |
include: | ||
- os: ubuntu-24.04 | ||
python-version: "3.14.0-alpha.0" | ||
- os: ubuntu-22.04 | ||
python-version: "3.14.0-alpha.0" | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
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