From 53c50caeedcdd8833f215115ff5467031c4e7c4f Mon Sep 17 00:00:00 2001 From: Lau Johansson Date: Tue, 20 Dec 2022 11:01:48 +0100 Subject: [PATCH] remove asterisk in import --- src/atc/__init__.py | 15 ++++++++++++--- src/atc/configurator/configurator.py | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/atc/__init__.py b/src/atc/__init__.py index ba7f99b9..bd162af9 100644 --- a/src/atc/__init__.py +++ b/src/atc/__init__.py @@ -4,14 +4,23 @@ """ from atc import etl, functions, spark, sql # noqa: F401 -from atc.conf_naming import * # noqa: F401 +from atc.conf_naming import ( # noqa: F401 + ALIAS, + DEBUG, + FORMAT, + NAME, + PARTITIONING, + PATH, + RELEASE, + SCHEMA, +) from atc.configurator.configurator import Configurator # noqa: F401 from .version import __version__ # noqa: F401 -DEBUG = False +__DEBUG__ = False def dbg(*args, **kwargs): - if DEBUG: + if __DEBUG__: print(*args, **kwargs) diff --git a/src/atc/configurator/configurator.py b/src/atc/configurator/configurator.py index c6648b3d..f48b6687 100644 --- a/src/atc/configurator/configurator.py +++ b/src/atc/configurator/configurator.py @@ -9,7 +9,7 @@ import yaml from deprecated import deprecated -from atc import ALIAS, DEBUG, NAME, PATH, RELEASE +from atc.conf_naming import ALIAS, DEBUG, NAME, PATH, RELEASE from atc.exceptions import NoSuchValueException # recursive type definition of the details object