Skip to content

Commit

Permalink
rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
rreinold committed Sep 20, 2024
1 parent ddaf85f commit 9f4e144
Show file tree
Hide file tree
Showing 808 changed files with 3,551 additions and 3,524 deletions.
3 changes: 1 addition & 2 deletions assets/scripts/build_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
from typing import TYPE_CHECKING, Dict, Final, List, Optional, Tuple

import click
import pkg_resources # noqa: TID251 # TODO: switch to importlib.metadata or importlib.resources

import great_expectations as gx
import pkg_resources # noqa: TID251 # TODO: switch to importlib.metadata or importlib.resources
from great_expectations.compatibility import pydantic
from great_expectations.core.expectation_diagnostics.expectation_doctor import (
ExpectationDoctor,
Expand Down
3 changes: 1 addition & 2 deletions assets/scripts/build_package_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
from typing import TYPE_CHECKING, List

import pip
from great_expectations_contrib.commands import read_package_from_file, sync_package

from great_expectations.util import convert_to_json_serializable # noqa: TID251
from great_expectations_contrib.commands import read_package_from_file, sync_package

if TYPE_CHECKING:
from great_expectations_contrib.package import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"outputs": [],
"source": [
"import findspark\n",
"import pyspark\n",
"from pyspark.sql import SparkSession\n",
"\n",
"findspark.init()"
Expand Down Expand Up @@ -2459,7 +2458,7 @@
"source": [
"### Add all files matching a regex to a Datasource as a single Data Asset grouped by year and month\n",
"all_csv_files_as_month_year_regex = (\n",
" \"yellow_tripdata_sample_(?P<year>\\d{4})-(?P<month>\\d{2}).csv\"\n",
" r\"yellow_tripdata_sample_(?P<year>\\d{4})-(?P<month>\\d{2}).csv\"\n",
")\n",
"data_asset = datasource.add_csv_asset(\n",
" asset_name=\"MyTaxiDataAsset\", batching_regex=all_csv_files_as_month_year_regex\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"outputs": [],
"source": [
"import findspark\n",
"import pyspark\n",
"from pyspark.sql import SparkSession\n",
"\n",
"findspark.init()"
Expand Down Expand Up @@ -2900,7 +2899,7 @@
"source": [
"### Add all files matching a regex to a Datasource as a single Data Asset grouped by year and month\n",
"all_csv_files_as_month_year_regex = (\n",
" \"yellow_tripdata_sample_(?P<year>\\d{4})-(?P<month>\\d{2}).csv\"\n",
" r\"yellow_tripdata_sample_(?P<year>\\d{4})-(?P<month>\\d{2}).csv\"\n",
")\n",
"data_asset = datasource.add_csv_asset(\n",
" asset_name=\"MyTaxiDataAsset\", batching_regex=all_csv_files_as_month_year_regex\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx_api_docs_source/build_sphinx_api_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _parse_and_process_html_to_mdx( # noqa: C901
Returns:
Content suitable for use in a docusaurus mdx file.
"""
from bs4 import ( # noqa: I001
from bs4 import (
BeautifulSoup,
) # Importing here since it is not a library requirement

Expand Down
36 changes: 0 additions & 36 deletions great_expectations/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion great_expectations/analytics/__init__.py

This file was deleted.

17 changes: 0 additions & 17 deletions great_expectations/data_context/data_context/__init__.py

This file was deleted.

96 changes: 0 additions & 96 deletions great_expectations/datasource/fluent/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions great_expectations/datasource/fluent/data_connector/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 36 additions & 0 deletions great_expectations_v1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# isort:skip_file

# Set up version information immediately
from ._version import get_versions as _get_versions

__version__ = _get_versions()["version"]
del _get_versions

# great_expectations.data_context must be imported first or we will have circular dependency issues
import great_expectations_v1.data_context # isort:skip
import great_expectations_v1.core

from great_expectations_v1.data_context.data_context.context_factory import get_context

# # By placing this registry function in our top-level __init__, we ensure that all
# # GX workflows have populated expectation registries before they are used.
from great_expectations_v1.expectations.registry import (
register_core_expectations as _register_core_expectations,
register_core_metrics as _register_core_metrics,
)

_register_core_metrics()
_register_core_expectations()

del _register_core_metrics
del _register_core_expectations

from great_expectations_v1 import exceptions
from great_expectations_v1 import expectations
from great_expectations_v1 import checkpoint

from great_expectations_v1.checkpoint import Checkpoint
from great_expectations_v1.core.expectation_suite import ExpectationSuite
from great_expectations_v1.core.result_format import ResultFormat
from great_expectations_v1.core.run_identifier import RunIdentifier
from great_expectations_v1.core.validation_definition import ValidationDefinition
Loading

0 comments on commit 9f4e144

Please sign in to comment.