File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ repos:
15
15
files : requirements-dev.txt
16
16
17
17
- repo : https://github.com/astral-sh/ruff-pre-commit
18
- rev : v0.3.0
18
+ rev : v0.3.4
19
19
hooks :
20
20
- id : ruff
21
21
22
22
- repo : https://github.com/psf/black
23
- rev : 24.2 .0
23
+ rev : 24.3 .0
24
24
hooks :
25
25
- id : black
26
26
language_version : python3
Original file line number Diff line number Diff line change @@ -1153,11 +1153,9 @@ def warn_for_geometry_collections(self) -> None:
1153
1153
]
1154
1154
if any (geom_collections ):
1155
1155
warnings .warn (
1156
- "{} is not configured to render for GeoJson GeometryCollection geometries. "
1157
- "Please consider reworking these features: {} to MultiPolygon for full functionality.\n "
1158
- "https://tools.ietf.org/html/rfc7946#page-9" .format (
1159
- self ._name , geom_collections
1160
- ),
1156
+ f"{ self ._name } is not configured to render for GeoJson GeometryCollection geometries. "
1157
+ f"Please consider reworking these features: { geom_collections } to MultiPolygon for full functionality.\n "
1158
+ "https://tools.ietf.org/html/rfc7946#page-9" ,
1161
1159
UserWarning ,
1162
1160
)
1163
1161
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ color = true
19
19
ignore_missing_imports = true
20
20
21
21
[tool .ruff ]
22
- select = [
22
+ lint. select = [
23
23
" F" , # flakes
24
24
" I" , # import sorting
25
25
" U" , # upgrade
26
26
]
27
27
target-version = " py37"
28
28
line-length = 120
29
29
30
- [tool . ruff .per-file-ignores ]
30
+ [lint .per-file-ignores ]
31
31
"docs/conf.py" = [" E402" ]
You can’t perform that action at this time.
0 commit comments