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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=5500']
args: ["--maxkb=5500"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
rev: v0.3.4
hooks:
- id: ruff
args: ['--fix']
args: ["--fix"]
- id: ruff-format
3 changes: 2 additions & 1 deletion lonboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Python library for fast, interactive geospatial vector data visualization in Jupyter.
"""
Python library for fast, interactive geospatial vector data visualization in Jupyter.
"""

from . import colormap, controls, layer_extension, traits
Expand Down
3 changes: 1 addition & 2 deletions lonboard/_geoarrow/ops/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Geometry operations on GeoArrow memory
"""
"""Geometry operations on GeoArrow memory"""

from .bbox import total_bounds
from .centroid import weighted_centroid
Expand Down
3 changes: 1 addition & 2 deletions lonboard/_geoarrow/ops/bbox.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Compute the total bounds of a geoarrow column
"""
"""Compute the total bounds of a geoarrow column"""

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions lonboard/_geoarrow/ops/centroid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Compute the weighted centroid of geometries
"""
"""Compute the weighted centroid of geometries"""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
4 changes: 2 additions & 2 deletions lonboard/_geoarrow/ops/reproject.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Reproject a GeoArrow array
"""
"""Reproject a GeoArrow array"""

import json
import warnings
from concurrent.futures import ThreadPoolExecutor
Expand Down
4 changes: 2 additions & 2 deletions lonboard/_geoarrow/sanitize.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Remove custom geoarrow.pyarrow types from input geoarrow data
"""
"""Remove custom geoarrow.pyarrow types from input geoarrow data"""

import json
from typing import Tuple

Expand Down
4 changes: 2 additions & 2 deletions lonboard/_testing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Utilities for exporting data to test in the JS @geoarrow/deck.gl-layers package
"""
"""Utilities for exporting data to test in the JS @geoarrow/deck.gl-layers package"""

import pyarrow.feather as feather

from lonboard._layer import BaseLayer
Expand Down
8 changes: 4 additions & 4 deletions lonboard/_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@

class GeoInterfaceProtocol(Protocol):
@property
def __geo_interface__(self) -> dict:
...
def __geo_interface__(self) -> dict: ...

class ArrowStreamExportable(Protocol):
def __arrow_c_stream__(self, requested_schema: object | None = None) -> object:
...
def __arrow_c_stream__(
self, requested_schema: object | None = None
) -> object: ...

VizDataInput = Union[
gpd.GeoDataFrame,
Expand Down
3 changes: 1 addition & 2 deletions lonboard/types/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
class ArrowArrayExportable(Protocol):
def __arrow_c_array__(
self, requested_schema: object | None = None
) -> Tuple[object, object]:
...
) -> Tuple[object, object]: ...


IntFloat = Union[int, float]
Expand Down