From 4264ced9fa14b689acc18169b2c1cae72d3ce667 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Sun, 3 May 2026 19:55:31 +0100 Subject: fix import paths & update pyproject.toml --- fnme/cli.py | 9 +++++---- fnme/data.py | 3 ++- fnme/station.py | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'fnme') diff --git a/fnme/cli.py b/fnme/cli.py index d93d9f4..d9ef508 100644 --- a/fnme/cli.py +++ b/fnme/cli.py @@ -2,12 +2,13 @@ import argparse import sys from typing import Any, Dict, List -from constants import SORT_KV -from data import get_latest_data -from geo import get_location -from station import filter_df, sort_stations from tabulate import tabulate +from fnme.constants import SORT_KV +from fnme.data import get_latest_data +from fnme.geo import get_location +from fnme.station import filter_df, sort_stations + def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser() diff --git a/fnme/data.py b/fnme/data.py index 369d80f..bdec6df 100644 --- a/fnme/data.py +++ b/fnme/data.py @@ -3,7 +3,8 @@ from typing import Optional import pandas as pd import requests -from constants import ENDPOINT, HEADERS + +from fnme.constants import ENDPOINT, HEADERS def get_latest_data() -> tuple[pd.DataFrame, Optional[str]]: diff --git a/fnme/station.py b/fnme/station.py index e5112c3..c971173 100644 --- a/fnme/station.py +++ b/fnme/station.py @@ -4,7 +4,8 @@ from typing import Any, Dict, List, Tuple import numpy as np import pandas as pd -from constants import SORT_KV + +from fnme.constants import SORT_KV def filter_df( -- cgit v1.2.3