From 679648d42b3bd590e2a9191b2db5ad656e0233ec Mon Sep 17 00:00:00 2001 From: Rakesh Date: Thu, 29 Jan 2026 10:58:37 -0500 Subject: [PATCH] Move VALIDATION_FORMATS_MESSAGE from core.py to constants package --- cdisc_rules_engine/constants/__init__.py | 4 ++++ core.py | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cdisc_rules_engine/constants/__init__.py b/cdisc_rules_engine/constants/__init__.py index e61d21310..dd9b42e14 100644 --- a/cdisc_rules_engine/constants/__init__.py +++ b/cdisc_rules_engine/constants/__init__.py @@ -17,3 +17,7 @@ NULL_FLAVORS = ["", None, {None}, [], {}, np.nan] KNOWN_REPORT_EXTENSIONS = [".json", ".xlsx", ".xls"] + +VALIDATION_FORMATS_MESSAGE = ( + "SAS V5 XPT, Dataset-JSON (JSON or NDJSON), or Excel (XLSX)" +) diff --git a/core.py b/core.py index 3d4d663fd..4ae82b822 100644 --- a/core.py +++ b/core.py @@ -28,13 +28,11 @@ get_rules_cache_key, validate_dataset_files_exist, ) +from cdisc_rules_engine.constants import VALIDATION_FORMATS_MESSAGE from cdisc_rules_engine.enums.dataformat_types import DataFormatTypes from scripts.list_dataset_metadata_handler import list_dataset_metadata_handler from version import __version__ -VALIDATION_FORMATS_MESSAGE = ( - "SAS V5 XPT, Dataset-JSON (JSON or NDJSON), or Excel (XLSX)" -) DEFAULT_CACHE_PATH = os.path.join( os.path.dirname(os.path.abspath(__file__)), DefaultFilePaths.CACHE.value )