File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 24
24
## Breaking changes to the API
25
25
26
26
## Upcoming deprecations for Kedro 0.19.0
27
+ * ` ConfigLoader ` and ` TemplatedConfigLoader ` will be deprecated. Please use ` OmegaConfigLoader ` instead.
27
28
28
29
# Release 0.18.11
29
30
Original file line number Diff line number Diff line change 8
8
import subprocess
9
9
import sys
10
10
import traceback
11
+ import warnings
11
12
from copy import deepcopy
12
13
from pathlib import Path
13
14
from typing import Any , Iterable
14
15
15
16
import click
16
17
17
18
from kedro import __version__ as kedro_version
18
- from kedro .config import ConfigLoader , MissingConfigException
19
+ from kedro .config import ConfigLoader , MissingConfigException , TemplatedConfigLoader
19
20
from kedro .framework .context import KedroContext
20
21
from kedro .framework .context .context import _convert_paths_to_absolute_posix
21
22
from kedro .framework .hooks import _create_hook_manager
@@ -261,7 +262,15 @@ def load_context(self) -> KedroContext:
261
262
env = self .store .get ("env" )
262
263
extra_params = self .store .get ("extra_params" )
263
264
config_loader = self ._get_config_loader ()
264
-
265
+ if isinstance (config_loader , (ConfigLoader , TemplatedConfigLoader )):
266
+ warnings .warn (
267
+ f"{ type (config_loader ).__name__ } will be deprecated in Kedro 0.19."
268
+ f" Please use the OmegaConfigLoader instead. To consult"
269
+ f" the documentation for OmegaConfigLoader, see here:"
270
+ f" https://docs.kedro.org/en/stable/configuration/"
271
+ f"advanced_configuration.html#omegaconfigloader" ,
272
+ FutureWarning ,
273
+ )
265
274
context_class = settings .CONTEXT_CLASS
266
275
context = context_class (
267
276
package_name = self ._package_name ,
You can’t perform that action at this time.
0 commit comments