Skip to content

Comments

Add tsm Python module#410

Draft
Grufoony wants to merge 1 commit intomainfrom
tsm
Draft

Add tsm Python module#410
Grufoony wants to merge 1 commit intomainfrom
tsm

Conversation

@Grufoony
Copy link
Collaborator

No description provided.

to_folium_map as to_folium_map,
)

from .tsm import TSM as TSM

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Import alias does not rename original package Warning

Import alias does not rename original package
@@ -0,0 +1 @@
from .tsm import TSM as TSM

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing module docstring Warning

Missing module docstring
@@ -0,0 +1 @@
from .tsm import TSM as TSM

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Import alias does not rename original package Warning

Import alias does not rename original package
@@ -0,0 +1,204 @@
from __future__ import annotations

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing module docstring Warning

Missing module docstring
# helpers
# ------------------------------------------------------------------
@property
def _group_cols(self) -> list[str]:

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Value 'list' is unsubscriptable Warning

Value 'list' is unsubscriptable
return self._result

@property
def df(self) -> pl.DataFrame:

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Attribute name "df" doesn't conform to snake_case naming style Warning

Attribute name "df" doesn't conform to snake_case naming style
to_folium_map as to_folium_map,
)

from .tsm import TSM as TSM

Check warning

Code scanning / Prospector (reported by Codacy)

Import alias does not rename original package (useless-import-alias) Warning

Import alias does not rename original package (useless-import-alias)
to_folium_map as to_folium_map,
)

from .tsm import TSM as TSM

Check warning

Code scanning / Prospector (reported by Codacy)

'.tsm.TSM' imported but unused (F401) Warning

'.tsm.TSM' imported but unused (F401)
@@ -0,0 +1 @@
from .tsm import TSM as TSM

Check warning

Code scanning / Prospector (reported by Codacy)

Import alias does not rename original package (useless-import-alias) Warning

Import alias does not rename original package (useless-import-alias)
@@ -0,0 +1 @@
from .tsm import TSM as TSM

Check warning

Code scanning / Prospector (reported by Codacy)

'.tsm.TSM' imported but unused (F401) Warning

'.tsm.TSM' imported but unused (F401)
from pathlib import Path
from typing import Dict, Optional

import polars as pl

Check warning

Code scanning / Prospector (reported by Codacy)

Unable to import 'polars' (import-error) Warning

Unable to import 'polars' (import-error)
# helpers
# ------------------------------------------------------------------
@property
def _group_cols(self) -> list[str]:

Check warning

Code scanning / Prospector (reported by Codacy)

Value 'list' is unsubscriptable (unsubscriptable-object) Warning

Value 'list' is unsubscriptable (unsubscriptable-object)
@@ -0,0 +1 @@
from .tsm import TSM as TSM

Check warning

Code scanning / Pylint (reported by Codacy)

Missing module docstring Warning

Missing module docstring
@@ -0,0 +1,204 @@
from __future__ import annotations

Check warning

Code scanning / Pylint (reported by Codacy)

No name 'annotations' in module 'future' Warning

No name 'annotations' in module '__future__'
@@ -0,0 +1,204 @@
from __future__ import annotations

Check warning

Code scanning / Pylint (reported by Codacy)

Missing module docstring Warning

Missing module docstring
"""

def __init__(
self,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation before block (add 4 spaces). Warning

Wrong hanging indentation before block (add 4 spaces).

def __init__(
self,
data: pl.DataFrame,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation before block (add 4 spaces). Warning

Wrong hanging indentation before block (add 4 spaces).
# helpers
# ------------------------------------------------------------------
@property
def _group_cols(self) -> list[str]:

Check warning

Code scanning / Pylint (reported by Codacy)

Value 'list' is unsubscriptable Warning

Value 'list' is unsubscriptable
# public API
# ------------------------------------------------------------------
def clusterize(
self,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation before block (add 4 spaces). Warning

Wrong hanging indentation before block (add 4 spaces).
# ------------------------------------------------------------------
def clusterize(
self,
min_vehicles: int = 5,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation before block (add 4 spaces). Warning

Wrong hanging indentation before block (add 4 spaces).
def clusterize(
self,
min_vehicles: int = 5,
gap_factor: float = 3.0,

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation before block (add 4 spaces). Warning

Wrong hanging indentation before block (add 4 spaces).
return self._result

@property
def df(self) -> pl.DataFrame:

Check warning

Code scanning / Pylint (reported by Codacy)

Attribute name "df" doesn't conform to snake_case naming style Warning

Attribute name "df" doesn't conform to snake_case naming style
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.69%. Comparing base (1201569) to head (34d515c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #410   +/-   ##
=======================================
  Coverage   87.69%   87.69%           
=======================================
  Files          52       52           
  Lines        6129     6129           
  Branches      682      682           
=======================================
  Hits         5375     5375           
  Misses        735      735           
  Partials       19       19           
Flag Coverage Δ
unittests 87.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant