Skip to content

Commit fc61631

Browse files
authored
Bump ruff version in pre-commit (#432)
## Available PR templates <!-- Github doesn't allow PR template selection the same way that it is possible with issues. Preview this and select the appropriate template --> - [Default](?expand=1&template=default.md) - [Version Release](?expand=1&template=version_release.md) - _Alternatively delete and start empty_
1 parent 27a7e57 commit fc61631

File tree

10 files changed

+20
-22
lines changed

10 files changed

+20
-22
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ repos:
1515
- id: trailing-whitespace
1616
- id: end-of-file-fixer
1717
- id: check-added-large-files
18-
args: ['--maxkb=5500']
18+
args: ["--maxkb=5500"]
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.1.3
21+
rev: v0.3.4
2222
hooks:
2323
- id: ruff
24-
args: ['--fix']
24+
args: ["--fix"]
2525
- id: ruff-format

lonboard/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Python library for fast, interactive geospatial vector data visualization in Jupyter.
1+
"""
2+
Python library for fast, interactive geospatial vector data visualization in Jupyter.
23
"""
34

45
from . import colormap, controls, layer_extension, traits

lonboard/_geoarrow/ops/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Geometry operations on GeoArrow memory
2-
"""
1+
"""Geometry operations on GeoArrow memory"""
32

43
from .bbox import total_bounds
54
from .centroid import weighted_centroid

lonboard/_geoarrow/ops/bbox.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Compute the total bounds of a geoarrow column
2-
"""
1+
"""Compute the total bounds of a geoarrow column"""
32

43
from __future__ import annotations
54

lonboard/_geoarrow/ops/centroid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Compute the weighted centroid of geometries
2-
"""
1+
"""Compute the weighted centroid of geometries"""
2+
33
from __future__ import annotations
44

55
from dataclasses import dataclass

lonboard/_geoarrow/ops/reproject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Reproject a GeoArrow array
2-
"""
1+
"""Reproject a GeoArrow array"""
2+
33
import json
44
import warnings
55
from concurrent.futures import ThreadPoolExecutor

lonboard/_geoarrow/sanitize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Remove custom geoarrow.pyarrow types from input geoarrow data
2-
"""
1+
"""Remove custom geoarrow.pyarrow types from input geoarrow data"""
2+
33
import json
44
from typing import Tuple
55

lonboard/_testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Utilities for exporting data to test in the JS @geoarrow/deck.gl-layers package
2-
"""
1+
"""Utilities for exporting data to test in the JS @geoarrow/deck.gl-layers package"""
2+
33
import pyarrow.feather as feather
44

55
from lonboard._layer import BaseLayer

lonboard/_viz.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444

4545
class GeoInterfaceProtocol(Protocol):
4646
@property
47-
def __geo_interface__(self) -> dict:
48-
...
47+
def __geo_interface__(self) -> dict: ...
4948

5049
class ArrowStreamExportable(Protocol):
51-
def __arrow_c_stream__(self, requested_schema: object | None = None) -> object:
52-
...
50+
def __arrow_c_stream__(
51+
self, requested_schema: object | None = None
52+
) -> object: ...
5353

5454
VizDataInput = Union[
5555
gpd.GeoDataFrame,

lonboard/types/layer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
class ArrowArrayExportable(Protocol):
2727
def __arrow_c_array__(
2828
self, requested_schema: object | None = None
29-
) -> Tuple[object, object]:
30-
...
29+
) -> Tuple[object, object]: ...
3130

3231

3332
IntFloat = Union[int, float]

0 commit comments

Comments
 (0)