From d9d3bf3e6c9f177d48cc37ae8540c119f3f848f7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 18:19:30 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d97abbc..5ebd5c90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ ci: repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: [ From 6caa93ea8b6faad537ed24f13117ad259c61c24a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 18:19:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/setup_example_database.py | 1 - tests/geogr/test_distances.py | 6 ++---- trackintel/model/util.py | 8 ++------ trackintel/visualization/__init__.py | 1 - 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/examples/setup_example_database.py b/examples/setup_example_database.py index 2af86f65..a4d0220f 100644 --- a/examples/setup_example_database.py +++ b/examples/setup_example_database.py @@ -5,7 +5,6 @@ from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT import trackintel as ti - # This script will remove the following table from your database! # It will then, however, repopulate it with new data. database_name = "trackintel-tests" diff --git a/tests/geogr/test_distances.py b/tests/geogr/test_distances.py index 60271c74..ecf55508 100644 --- a/tests/geogr/test_distances.py +++ b/tests/geogr/test_distances.py @@ -38,8 +38,7 @@ def gdf_lineStrings(): @pytest.fixture def single_linestring(): """Construct LineString that has ~1024 m in QGIS.""" - return wkt.loads( - """LineString(13.47671401745228259 + return wkt.loads("""LineString(13.47671401745228259 48.57364142178052901, 13.47510901146785933 48.5734004715611789, 13.47343656825720082 48.57335585102421049, 13.47172366271079369 @@ -49,8 +48,7 @@ def single_linestring(): 48.57348971251707326, 13.46473716607271243 48.57319521676494389, 13.46319959731452798 48.57253482611510975, 13.46319959731452798 - 48.57253482611510975)""" - ) + 48.57253482611510975)""") @pytest.fixture diff --git a/trackintel/model/util.py b/trackintel/model/util.py index b59643a2..37d77643 100644 --- a/trackintel/model/util.py +++ b/trackintel/model/util.py @@ -167,9 +167,7 @@ def decorator(decorated): _shared_docs = {} # in _shared_docs as all write_postgis_xyz functions use this docstring -_shared_docs[ - "write_postgis" -] = """ +_shared_docs["write_postgis"] = """ Stores {long} to PostGIS. Usually, this is directly called on a {long} DataFrame (see example below). @@ -210,9 +208,7 @@ def decorator(decorated): >>> ti.io.write_{long}_postgis({short}, conn_string, table_name) """ -_shared_docs[ - "write_csv" -] = """ +_shared_docs["write_csv"] = """ Write {long} to csv file. Wraps the pandas to_csv function. diff --git a/trackintel/visualization/__init__.py b/trackintel/visualization/__init__.py index 5c520cfe..bb1d9e4e 100644 --- a/trackintel/visualization/__init__.py +++ b/trackintel/visualization/__init__.py @@ -2,7 +2,6 @@ from .plotting import plot_osm_streets from .plotting import plot_modal_split - __all__ = [ "plot", "plot_osm_streets",