@@ -27,7 +27,6 @@ classifiers = [
2727 " Topic :: Software Development :: Libraries :: Python Modules" ,
2828]
2929dependencies = [
30- " typing_extensions" ,
3130]
3231
3332[project .optional-dependencies ]
@@ -47,6 +46,12 @@ sources = {"src" = ""} # move from "src" directory for wheel
4746[tool .hatch .version ]
4847path = " src/shapefile.py"
4948
49+ [tool .pytest .ini_options ]
50+ markers = [
51+ " network: marks tests requiring network access" ,
52+ " slow: marks other tests that cause bottlenecks" ,
53+ ]
54+
5055[tool .ruff ]
5156# Exclude a variety of commonly ignored directories.
5257exclude = [
@@ -111,35 +116,3 @@ skip-magic-trailing-comma = false
111116line-ending = " auto"
112117
113118
114- [tool .pylint .MASTER ]
115- load-plugins =[
116- " pylint_per_file_ignores" ,
117- ]
118-
119- # Silence warnings: src/shapefile.py:2076:20: W0212: Access to a protected member _from_geojson of a client class (protected-access)
120- # src/shapefile.py:950:16: W0201: Attribute 'm' defined outside __init__ (attribute-defined-outside-init)
121- # src/shapefile.py:973:12: W0707: Consider explicitly re-raising using 'except error as exc' and
122- # 'raise ShapefileException(f'Failed to write bounding box for record {i}.
123- # Expected floats.') from exc' (raise-missing-from)
124- # Silence remarks:
125- # src\shapefile.py:338:0: R0914: Too many local variables (21/15) (too-many-locals)
126- # src\shapefile.py:338:0: R0912: Too many branches (24/12) (too-many-branches)
127- # src\shapefile.py:338:0: R0915: Too many statements (52/50) (too-many-statements)
128- # src\shapefile.py:470:0: R0902: Too many instance attributes (9/7) (too-many-instance-attributes)
129- # src\shapefile.py:471:4: R0913: Too many arguments (6/5) (too-many-arguments)
130- # src\shapefile.py:471:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
131- # src\shapefile.py:506:4: R0911: Too many return statements (10/6) (too-many-return-statements)
132- # src\shapefile.py:878:0: R0903: Too few public methods (0/2) (too-few-public-methods)
133- # src\shapefile.py:1981:0: R0904: Too many public methods (23/20) (too-many-public-methods)
134- # src\shapefile.py:2117:17: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
135- # Silence warnings: test_shapefile.py:{783,786,799,803,06,1195}:19:
136- # W0212: Access to a protected member _offsets of a
137- # client class (protected-access)
138- #
139- # Toml multi-line string used instead of array due to:
140- # https://github.com/christopherpickering/pylint-per-file-ignores/issues/160
141- [tool .pylint .'messages control' ]
142- per-file-ignores = [
143- " /src/shapefile.py:W0707,W0212,W0201,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0917,R1732" ,
144- " test_shapefile.py:W0212,R1732" ,
145- ]
0 commit comments