From bb70197a14ee4ad7415e1745da14e6745f2a0033 Mon Sep 17 00:00:00 2001 From: mdtanker Date: Sat, 9 Dec 2023 02:00:23 +0100 Subject: [PATCH] fix: fixing self imports --- pyproject.toml | 1 + src/antarctic_plots/fetch.py | 6 +++++- src/antarctic_plots/regions.py | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e38a9347..b67008c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -220,6 +220,7 @@ messages_control.disable = [ "line-too-long", "missing-module-docstring", "wrong-import-position", + "cyclic-import", ] diff --git a/src/antarctic_plots/fetch.py b/src/antarctic_plots/fetch.py index de07ecf6..4baa5bb1 100644 --- a/src/antarctic_plots/fetch.py +++ b/src/antarctic_plots/fetch.py @@ -32,7 +32,11 @@ from pyproj import Transformer # import antarctic_plots.fetch as fetch -from antarctic_plots import fetch, regions, utils # noqa: PLW0406 +from antarctic_plots import ( # pylint: disable=import-self + fetch, # noqa: PLW0406 + regions, + utils, +) # import antarctic_plots.regions as regions # import antarctic_plots.utils as utils diff --git a/src/antarctic_plots/regions.py b/src/antarctic_plots/regions.py index d35dbdad..fdb82622 100644 --- a/src/antarctic_plots/regions.py +++ b/src/antarctic_plots/regions.py @@ -16,7 +16,11 @@ import pandas as pd import verde as vd -from antarctic_plots import maps, regions, utils # noqa: PLW0406 +from antarctic_plots import ( # pylint: disable=import-self + maps, + regions, # noqa: PLW0406 + utils, +) # import antarctic_plots.maps as maps # import antarctic_plots.regions as regions