Unify the way the imports work #9

Merged
alexander merged 21 commits from unify-imports into develop 2026-11-30 20:30:54 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit d660f0cc4e - Show all commits

Import googlemaps as gm everywhere

Alexander Hess 2026-11-30 19:53:15 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -545,6 +545,7 @@ banned-from = [
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"collections.abc" = "cabc"
"googlemaps" = "gm"
"sqlalchemy" = "sa"
"sqlalchemy.dialects.postgresql" = "psql"
"sqlalchemy.ext.hybrid" = "sa_hybrid"

View file

@ -2,7 +2,7 @@
import json
import googlemaps
import googlemaps as gm
import pytest
import sqlalchemy as sa
from geopy import distance
@ -635,7 +635,7 @@ class TestSyncWithGoogleMaps:
def directions(_self, *_args, **_kwargs):
return api_response
monkeypatch.setattr(googlemaps.Client, "directions", directions)
monkeypatch.setattr(gm.Client, "directions", directions)
def test_sync_instances_with_google_maps(self, path):
"""Call the method for a `Path` object without Google data."""