-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into kml/DOC-1001/expectationSelection
- Loading branch information
Showing
22 changed files
with
597 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 5. Docstrings for public API functions/classes | ||
|
||
Date: 2024-12-19 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
By marking an object as part of the public API, it automatically renders in our docs site. In order to provide a clear and informative experience for our end users, we should make sure we always include docstrings for public functions/classes. These docstrings should adhere to a consistent format such that they can be rendered in the same manner by our public API infrastructure. | ||
|
||
## Decision | ||
|
||
All objects decorated with `@public_api` will have docstrings. In order to be considered public, they must meet this criteria. | ||
|
||
## Consequences | ||
|
||
Marginal increase in developer burden but worthwhile due to a higher level of thought and care around what actually gets marked and rendered as part of our public API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default { | ||
release_version: 'great_expectations, version 1.2.6', | ||
release_version: 'great_expectations, version 1.3.0', | ||
min_python: '3.9', | ||
max_python: '3.12' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
from __future__ import annotations | ||
|
||
from great_expectations.compatibility.not_imported import NotImported | ||
|
||
POSTGRESQL_NOT_IMPORTED = NotImported( | ||
"postgresql connection components are not installed, please 'pip install psycopg2'" | ||
) | ||
|
||
try: | ||
import psycopg2 # noqa: F401 | ||
import sqlalchemy.dialects.postgresql as postgresqltypes | ||
except ImportError: | ||
postgresqltypes = POSTGRESQL_NOT_IMPORTED # type: ignore[assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import TEXT | ||
except (ImportError, AttributeError): | ||
TEXT = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import CHAR | ||
except (ImportError, AttributeError): | ||
CHAR = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import INTEGER | ||
except (ImportError, AttributeError): | ||
INTEGER = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import SMALLINT | ||
except (ImportError, AttributeError): | ||
SMALLINT = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import BIGINT | ||
except (ImportError, AttributeError): | ||
BIGINT = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import TIMESTAMP | ||
except (ImportError, AttributeError): | ||
TIMESTAMP = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import DATE | ||
except (ImportError, AttributeError): | ||
DATE = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import DOUBLE_PRECISION | ||
except (ImportError, AttributeError): | ||
DOUBLE_PRECISION = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import BOOLEAN | ||
except (ImportError, AttributeError): | ||
BOOLEAN = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
try: | ||
from sqlalchemy.dialects.postgresql import NUMERIC | ||
except (ImportError, AttributeError): | ||
NUMERIC = POSTGRESQL_NOT_IMPORTED # type: ignore[misc, assignment] | ||
|
||
|
||
class POSTGRESQL_TYPES: | ||
"""Namespace for PostgreSQL dialect types.""" | ||
|
||
TEXT = TEXT | ||
CHAR = CHAR | ||
INTEGER = INTEGER | ||
SMALLINT = SMALLINT | ||
BIGINT = BIGINT | ||
TIMESTAMP = TIMESTAMP | ||
DATE = DATE | ||
DOUBLE_PRECISION = DOUBLE_PRECISION | ||
BOOLEAN = BOOLEAN | ||
NUMERIC = NUMERIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.6 | ||
1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.