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: [ 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",