great_expectations icon indicating copy to clipboard operation
great_expectations copied to clipboard

Please don't turn on DeprecationWarnings

Open jobevers opened this issue 2 years ago • 1 comments

https://github.com/great-expectations/great_expectations/blob/develop/great_expectations/expectations/metrics/meta_metric_provider.py#L27

Turning on DeprecationWarnings like this overrides any settings we already have.

Our current workaround is:

import warnings
filters = list(warnings.filters)

from great_expectations.data_context.types.base import DataContextConfig
from great_expectations.data_context import BaseDataContext
from great_expectations.core.batch import RuntimeBatchRequest

warnings.filters = filters

jobevers avatar Feb 03 '22 17:02 jobevers

Hi @jobevers and @dtomlinson91, this is unfortunate that this is overriding your project level settings. We will look into more consistent usage of logger methods and replacing use of the warnings module. We will be in touch.

kenwade4 avatar Feb 04 '22 16:02 kenwade4