diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4afe9c0086..84af8e58cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,12 +12,12 @@ repos: args: ["--maxkb=500"] - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black-jupyter - repo: https://github.com/codespell-project/codespell - rev: v2.4.0 + rev: v2.4.1 hooks: - id: codespell args: diff --git a/examples/batch_update.py b/examples/batch_update.py index 9fc01cd224..285472fbf2 100644 --- a/examples/batch_update.py +++ b/examples/batch_update.py @@ -1,5 +1,4 @@ -"""This script can do a batch update of notebook examples. -""" +"""This script can do a batch update of notebook examples.""" import glob import os diff --git a/leafmap/colormaps.py b/leafmap/colormaps.py index 8c5595d8da..543f38a812 100644 --- a/leafmap/colormaps.py +++ b/leafmap/colormaps.py @@ -1,5 +1,4 @@ -"""Module for commonly used colormaps and palettes for visualizing geospatial data. -""" +"""Module for commonly used colormaps and palettes for visualizing geospatial data.""" import matplotlib as mpl import matplotlib.pyplot as plt diff --git a/leafmap/common.py b/leafmap/common.py index 054dce9d91..7dde548abf 100644 --- a/leafmap/common.py +++ b/leafmap/common.py @@ -1,5 +1,4 @@ -"""This module contains some common functions for both folium and ipyleaflet. -""" +"""This module contains some common functions for both folium and ipyleaflet.""" import csv import json @@ -6313,7 +6312,7 @@ def meters_to_lnglat(x, y): def bounds_to_xy_range( bounds: Union[ List[Union[Tuple[float, float], float]], Tuple[float, float, float, float] - ] + ], ) -> Tuple[Tuple[float, float], Tuple[float, float]]: """ Convert bounds to x and y range to be used as input to bokeh map. diff --git a/leafmap/legends.py b/leafmap/legends.py index d977a57a0e..0be039ee59 100644 --- a/leafmap/legends.py +++ b/leafmap/legends.py @@ -1,5 +1,4 @@ -"""Module of sample legends for some commonly used geospatial datasets. -""" +"""Module of sample legends for some commonly used geospatial datasets.""" # Land Cover datasets in Earth Engine https://developers.google.com/earth-engine/datasets/tags/landcover builtin_legends = { diff --git a/leafmap/maplibregl.py b/leafmap/maplibregl.py index fd1f716a4a..289b2590ef 100644 --- a/leafmap/maplibregl.py +++ b/leafmap/maplibregl.py @@ -1,5 +1,4 @@ -"""The maplibregl module provides the Map class for creating interactive maps using the maplibre.ipywidget module. -""" +"""The maplibregl module provides the Map class for creating interactive maps using the maplibre.ipywidget module.""" import os import requests diff --git a/leafmap/pc.py b/leafmap/pc.py index 96c969c945..d005dba3f3 100644 --- a/leafmap/pc.py +++ b/leafmap/pc.py @@ -1,6 +1,4 @@ -"""A module for Microsoft Planetary Computer (PC). - -""" +"""A module for Microsoft Planetary Computer (PC).""" import json import os diff --git a/leafmap/toolbar.py b/leafmap/toolbar.py index 43301f8872..dc4a5b220d 100644 --- a/leafmap/toolbar.py +++ b/leafmap/toolbar.py @@ -1,5 +1,4 @@ -"""Module for dealing with the toolbar. -""" +"""Module for dealing with the toolbar.""" import math import os