Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions folium/plugins/beautify_icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
inner_icon_style="",
spin=False,
number=None,
**kwargs
**kwargs,
):
super().__init__()
self._name = "BeautifyIcon"
Expand All @@ -109,5 +109,5 @@ def __init__(
spin=spin,
isAlphaNumericIcon=number is not None,
text=number,
**kwargs
**kwargs,
)
2 changes: 1 addition & 1 deletion folium/plugins/boat_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
heading=0,
wind_heading=None,
wind_speed=0,
**kwargs
**kwargs,
):
super().__init__(location, popup=popup, icon=icon)
self._name = "BoatMarker"
Expand Down
4 changes: 2 additions & 2 deletions folium/plugins/fullscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
title="Full Screen",
title_cancel="Exit Full Screen",
force_separate_button=False,
**kwargs
**kwargs,
):
super().__init__()
self._name = "Fullscreen"
Expand All @@ -63,5 +63,5 @@ def __init__(
title=title,
title_cancel=title_cancel,
force_separate_button=force_separate_button,
**kwargs
**kwargs,
)
4 changes: 2 additions & 2 deletions folium/plugins/geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(
zoom: Optional[int] = 11,
provider: str = "nominatim",
provider_options: dict = {},
**kwargs
**kwargs,
):
super().__init__()
self._name = "Geocoder"
Expand All @@ -87,5 +87,5 @@ def __init__(
zoom=zoom,
provider=provider,
provider_options=provider_options,
**kwargs
**kwargs,
)
4 changes: 2 additions & 2 deletions folium/plugins/heat_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
overlay=True,
control=True,
show=True,
**kwargs
**kwargs,
):
super().__init__(name=name, overlay=overlay, control=control, show=show)
self._name = "HeatMap"
Expand All @@ -95,7 +95,7 @@ def __init__(
radius=radius,
blur=blur,
gradient=gradient,
**kwargs
**kwargs,
)

def _get_self_bounds(self):
Expand Down
2 changes: 1 addition & 1 deletion folium/plugins/marker_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(
show=True,
icon_create_function=None,
options=None,
**kwargs
**kwargs,
):
if options is not None:
kwargs.update(options) # options argument is legacy
Expand Down
4 changes: 2 additions & 2 deletions folium/plugins/measure_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
secondary_length_unit="miles",
primary_area_unit="sqmeters",
secondary_area_unit="acres",
**kwargs
**kwargs,
):
super().__init__()
self._name = "MeasureControl"
Expand All @@ -77,5 +77,5 @@ def __init__(
secondary_length_unit=secondary_length_unit,
primary_area_unit=primary_area_unit,
secondary_area_unit=secondary_area_unit,
**kwargs
**kwargs,
)
4 changes: 2 additions & 2 deletions folium/plugins/minimap.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(
toggle_display=False,
auto_toggle_display=False,
minimized=False,
**kwargs
**kwargs,
):
super().__init__()
self._name = "MiniMap"
Expand All @@ -126,5 +126,5 @@ def __init__(
toggle_display=toggle_display,
auto_toggle_display=auto_toggle_display,
minimized=minimized,
**kwargs
**kwargs,
)
4 changes: 2 additions & 2 deletions folium/plugins/mouse_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
prefix="",
lat_formatter=None,
lng_formatter=None,
**kwargs
**kwargs,
):
super().__init__()
self._name = "MousePosition"
Expand All @@ -93,7 +93,7 @@ def __init__(
lng_first=lng_first,
num_digits=num_digits,
prefix=prefix,
**kwargs
**kwargs,
)
self.lat_formatter = lat_formatter or "undefined"
self.lng_formatter = lng_formatter or "undefined"
4 changes: 2 additions & 2 deletions folium/plugins/overlapping_marker_spiderfier.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
nearby_distance: int = 20,
leg_weight: float = 1.5,
circle_spiral_switchover: int = 9,
**kwargs
**kwargs,
):
super().__init__()
self._name = "OverlappingMarkerSpiderfier"
Expand All @@ -82,7 +82,7 @@ def __init__(
nearby_distance=nearby_distance,
leg_weight=leg_weight,
circle_spiral_switchover=circle_spiral_switchover,
**kwargs
**kwargs,
)

def add_to(
Expand Down
4 changes: 2 additions & 2 deletions folium/plugins/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
space_color="#ffffff",
opacity=0.75,
space_opacity=0.0,
**kwargs
**kwargs,
):
super().__init__()
self._name = "StripePattern"
Expand All @@ -65,7 +65,7 @@ def __init__(
space_color=space_color,
opacity=opacity,
space_opacity=space_opacity,
**kwargs
**kwargs,
)
self.parent_map = None

Expand Down
4 changes: 2 additions & 2 deletions folium/plugins/polyline_text_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
offset=0,
orientation=0,
attributes=None,
**kwargs
**kwargs,
):
super().__init__()
self._name = "PolyLineTextPath"
Expand All @@ -73,5 +73,5 @@ def __init__(
offset=offset,
orientation=orientation,
attributes=attributes,
**kwargs
**kwargs,
)
2 changes: 1 addition & 1 deletion folium/plugins/realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(
update_feature: Union[JsCode, str, None] = None,
remove_missing: bool = False,
container: Optional[Union[FeatureGroup, GeoJson]] = None,
**kwargs
**kwargs,
):
super().__init__()
self._name = "Realtime"
Expand Down
2 changes: 1 addition & 1 deletion folium/plugins/semicircle.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
stop_angle=None,
popup=None,
tooltip=None,
**kwargs
**kwargs,
):
super().__init__(location, popup=popup, tooltip=tooltip)
self._name = "SemiCircle"
Expand Down
4 changes: 2 additions & 2 deletions folium/plugins/tag_filter_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(
clear_text="clear",
filter_on_every_click=True,
open_popup_on_hover=False,
**kwargs
**kwargs,
):
super().__init__()
self._name = "TagFilterButton"
Expand All @@ -90,5 +90,5 @@ def __init__(
clear_text=clear_text,
filter_on_every_click=filter_on_every_click,
open_popup_on_hover=open_popup_on_hover,
**kwargs
**kwargs,
)
4 changes: 2 additions & 2 deletions folium/plugins/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(
self,
data: Union[dict, str, TextIO],
get_interval: Optional[JsCode] = None,
**kwargs
**kwargs,
):
super().__init__(data)
self._name = "Timeline"
Expand Down Expand Up @@ -211,7 +211,7 @@ def __init__(
show_ticks: bool = True,
steps: int = 1000,
playback_duration: int = 10000,
**kwargs
**kwargs,
):
super().__init__()
self._name = "TimelineSlider"
Expand Down
2 changes: 1 addition & 1 deletion folium/plugins/treelayercontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(
collapse_all: str = "",
expand_all: str = "",
label_is_selector: str = "both",
**kwargs
**kwargs,
):
super().__init__()
self._name = "TreeLayerControl"
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
requires = ["setuptools>=41.2", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "folium"
dynamic = [
"version",
"description",
"readme",
"license",
"authors",
"keywords",
"classifiers",
"dependencies",
"optional-dependencies",
]
requires-python = ">=3.9"

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
Expand Down
Loading