Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1036)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0)
- [github.com/codespell-project/codespell: v2.4.0 → v2.4.1](codespell-project/codespell@v2.4.0...v2.4.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 3, 2025
1 parent c15ceae commit f7b0e90
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions examples/batch_update.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions leafmap/colormaps.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions leafmap/common.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions leafmap/legends.py
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 1 addition & 2 deletions leafmap/maplibregl.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions leafmap/pc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""A module for Microsoft Planetary Computer (PC).
"""
"""A module for Microsoft Planetary Computer (PC)."""

import json
import os
Expand Down
3 changes: 1 addition & 2 deletions leafmap/toolbar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Module for dealing with the toolbar.
"""
"""Module for dealing with the toolbar."""

import math
import os
Expand Down

0 comments on commit f7b0e90

Please sign in to comment.