Skip to content

Commit a7b4f17

Browse files
authored
Merge pull request #1911 from python-visualization/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 12b8807 + 28e5458 commit a7b4f17

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ repos:
1515
files: requirements-dev.txt
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.3.0
18+
rev: v0.3.4
1919
hooks:
2020
- id: ruff
2121

2222
- repo: https://github.com/psf/black
23-
rev: 24.2.0
23+
rev: 24.3.0
2424
hooks:
2525
- id: black
2626
language_version: python3

folium/features.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,11 +1153,9 @@ def warn_for_geometry_collections(self) -> None:
11531153
]
11541154
if any(geom_collections):
11551155
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",
11611159
UserWarning,
11621160
)
11631161

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ color = true
1919
ignore_missing_imports = true
2020

2121
[tool.ruff]
22-
select = [
22+
lint.select = [
2323
"F", # flakes
2424
"I", # import sorting
2525
"U", # upgrade
2626
]
2727
target-version = "py37"
2828
line-length = 120
2929

30-
[tool.ruff.per-file-ignores]
30+
[lint.per-file-ignores]
3131
"docs/conf.py" = ["E402"]

0 commit comments

Comments
 (0)