Skip to content

Commit

Permalink
[feat]: kedro==0.18.13 & great_expectations~=0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpaillacan committed Oct 10, 2023
1 parent 0268a2a commit b012ca3
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 174 deletions.
5 changes: 2 additions & 3 deletions conf/base/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
# Documentation for this file format can be found in "The Data Catalog"
# Link: https://kedro.readthedocs.io/en/stable/data/data_catalog.html
companies.raw:
type: pandas.CSVDataSet
type: pandas.CSVDataset
filepath: data/01_raw/companies.csv

# preprocessed_companies:
# type: pandas.CSVDataSet
# filepath: data/02_intermediate/companies.csv
# filepath: data/02_intermediate/companies.csv
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@
],
"ge_cloud_id": null,
"meta": {
"great_expectations_version": "0.16.12"
"great_expectations_version": "0.17.21"
}
}
313 changes: 158 additions & 155 deletions notebooks/great_expectations_starter.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.kedro]
package_name = "kedro_great_example"
project_name = "kedro-great-example"
kedro_init_version = "0.18.7"
kedro_init_version = "0.18.13"

[tool.isort]
profile = "black"
Expand Down
6 changes: 2 additions & 4 deletions src/kedro_great_example/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ def _run_validation(self, dataset_name: str, data: Any):
data (Any): The data to be validated.
"""
if dataset_name in self.dataset_expectation_mapping:

expectation_context = ge.data_context.DataContext(
context_root_dir=self.context_root_dir
)

expectation_context = ge.get_context(context_root_dir=self.context_root_dir)
checkpoint_name = self.dataset_expectation_mapping[dataset_name]

results = expectation_context.run_checkpoint(
Expand Down
11 changes: 3 additions & 8 deletions src/kedro_great_example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@
# CONF_SOURCE = "conf"

# Class that manages how configuration is loaded.
# CONFIG_LOADER_CLASS = ConfigLoader
# Keyword arguments to pass to the `CONFIG_LOADER_CLASS` constructor.
# CONFIG_LOADER_ARGS = {
# "config_patterns": {
# "spark" : ["spark*/"],
# "parameters": ["parameters*", "parameters*/**", "**/parameters*"],
# }
# }
from kedro.config import OmegaConfigLoader # new import

CONFIG_LOADER_CLASS = OmegaConfigLoader

# Class that manages the Data Catalog.
# from kedro.io import DataCatalog
Expand Down
5 changes: 3 additions & 2 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ isort~=5.0
jupyter~=1.0
jupyterlab_server>=2.11.1, <2.16.0
jupyterlab~=3.0
kedro~=0.18
kedro==0.18.13
kedro-datasets==1.7.1
nbstripout~=0.4
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=6.2
great_expectations~=0.16
great_expectations~=0.17

0 comments on commit b012ca3

Please sign in to comment.