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 6048935c1..25733b52a 100644 --- a/core.py +++ b/core.py @@ -35,13 +35,12 @@ 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 scripts.run_validation import run_validation 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 )