Skip to content

Commit

Permalink
Make mypy happy again
Browse files Browse the repository at this point in the history
tyler-hoffman committed Jan 14, 2025
1 parent 924e6a0 commit c139d75
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ jobs:
run: python -m pip install --upgrade pip

- name: Install Library
run: pip install ".[tests]"
run: pip install ".[postgresql,tests]"

- name: Setup
run: |
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ lint =
mypy==1.14.1
ruff==0.8.3
pytest==8.3.4
pytest-mock==3.14.0
great-expectations[spark, spark-connect]>=1.3.1
gcp =
great-expectations[gcp]>=1.3.1
8 changes: 5 additions & 3 deletions tests/integration/test_validate_dataframe_operator.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from typing import Callable
from __future__ import annotations

from typing import TYPE_CHECKING, Callable

import pandas as pd
import pytest
from typing import TYPE_CHECKING
from great_expectations import ExpectationSuite
from great_expectations.expectations import ExpectColumnValuesToBeInSet

@@ -13,7 +14,6 @@

if TYPE_CHECKING:
from pyspark.sql import SparkSession
from pyspark.sql.connect.dataframe import DataFrame as SparkConnectDataFrame
from pyspark.sql.connect.session import SparkSession as SparkConnectSession


@@ -90,6 +90,8 @@ def configure_dataframe() -> pyspark.DataFrame:

@pytest.mark.spark_connect_integration
def test_spark_connect(self, spark_connect_session: SparkConnectSession) -> None:
from pyspark.sql.connect.dataframe import DataFrame as SparkConnectDataFrame

column_name = "col_A"
task_id = f"test_spark_{rand_name()}"

1 change: 0 additions & 1 deletion tests/unit/test_validate_batch_operator.py
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
from great_expectations.expectations import (
ExpectColumnValuesToBeInSet,
)
from pytest_mock import MockerFixture

from great_expectations_provider.operators.validate_batch import GXValidateBatchOperator

0 comments on commit c139d75

Please sign in to comment.