Skip to content

Commit ec54cd5

Browse files
authored
Merge pull request #1872 from python-visualization/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents c18677f + 44f1b28 commit ec54cd5

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
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.1.9
18+
rev: v0.2.0
1919
hooks:
2020
- id: ruff
2121

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

folium/features.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,9 @@ class GeoJson(Layer):
517517
518518
>>> # Provide a style_function that color all states green but Alabama.
519519
>>> style_function = lambda x: {
520-
... "fillColor": "#0000ff"
521-
... if x["properties"]["name"] == "Alabama"
522-
... else "#00ff00"
520+
... "fillColor": (
521+
... "#0000ff" if x["properties"]["name"] == "Alabama" else "#00ff00"
522+
... )
523523
... }
524524
>>> GeoJson(geojson, style_function=style_function)
525525
@@ -947,9 +947,9 @@ class TopoJson(JSCSSMixin, Layer):
947947
948948
>>> # Provide a style_function that color all states green but Alabama.
949949
>>> style_function = lambda x: {
950-
... "fillColor": "#0000ff"
951-
... if x["properties"]["name"] == "Alabama"
952-
... else "#00ff00"
950+
... "fillColor": (
951+
... "#0000ff" if x["properties"]["name"] == "Alabama" else "#00ff00"
952+
... )
953953
... }
954954
>>> TopoJson(topo_json, "object.myobject", style_function=style_function)
955955

folium/map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Classes for drawing maps.
33
44
"""
5+
56
import warnings
67
from collections import OrderedDict
78
from typing import Dict, List, Optional, Sequence, Tuple, Type, Union

folium/raster_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Wraps leaflet TileLayer, WmsTileLayer (TileLayer.WMS), ImageOverlay, and VideoOverlay
33
44
"""
5+
56
from typing import Any, Callable, Optional, Union
67

78
import xyzservices

folium/vector_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Wraps leaflet Polyline, Polygon, Rectangle, Circle, and CircleMarker
33
44
"""
5+
56
from typing import List, Optional, Sequence, Union
67

78
from branca.element import MacroElement

tests/test_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
----------------
44
55
"""
6+
67
import warnings
78

89
import numpy as np

tests/test_raster_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
------------------
44
55
"""
6+
67
import pytest
78
import xyzservices
89
from jinja2 import Template

0 commit comments

Comments
 (0)