Skip to content

Commit

Permalink
add import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas committed Jul 17, 2024
1 parent 7439f7f commit 859da48
Show file tree
Hide file tree
Showing 22 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chispa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os
import sys
from glob import glob
Expand Down
3 changes: 3 additions & 0 deletions chispa/bcolors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import annotations


class bcolors:
NC = "\033[0m" # No Color, reset all

Expand Down
2 changes: 2 additions & 0 deletions chispa/column_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from prettytable import PrettyTable

from chispa.bcolors import bcolors
Expand Down
2 changes: 2 additions & 0 deletions chispa/dataframe_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from functools import reduce

from chispa.formatting.formats import FormattingConfig
Expand Down
2 changes: 2 additions & 0 deletions chispa/formatting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from chispa.formatting.formats import Color, Format, FormattingConfig, Style
from chispa.formatting.terminal_string_formatter import TerminalStringFormatter

Expand Down
2 changes: 2 additions & 0 deletions chispa/formatting/formats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from dataclasses import dataclass, field
from enum import Enum

Expand Down
2 changes: 2 additions & 0 deletions chispa/number_helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import math


Expand Down
2 changes: 2 additions & 0 deletions chispa/row_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import math

from pyspark.sql import Row
Expand Down
2 changes: 2 additions & 0 deletions chispa/rows_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from itertools import zip_longest

from prettytable import PrettyTable
Expand Down
2 changes: 2 additions & 0 deletions chispa/schema_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from itertools import zip_longest

from prettytable import PrettyTable
Expand Down
2 changes: 2 additions & 0 deletions chispa/structfield_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from chispa.schema_comparer import are_structfields_equal

__all__ = ("are_structfields_equal",)
2 changes: 2 additions & 0 deletions docs/gen_ref_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
https://mkdocstrings.github.io/recipes/#automatic-code-reference-pages
"""

from __future__ import annotations

from pathlib import Path

import mkdocs_gen_files
Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from dataclasses import dataclass

import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/formatting/test_formats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from chispa.formatting.formats import Color, FormattingConfig, Style


Expand Down
2 changes: 2 additions & 0 deletions tests/formatting/test_terminal_string_formatter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pytest

from chispa.formatting.formats import Color, Format, Style
Expand Down
2 changes: 2 additions & 0 deletions tests/spark.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pyspark.sql import SparkSession

spark = SparkSession.builder.master("local").appName("chispa").getOrCreate()
2 changes: 2 additions & 0 deletions tests/test_column_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pytest

from chispa import ColumnsNotEqualError, assert_approx_column_equality, assert_column_equality
Expand Down
2 changes: 2 additions & 0 deletions tests/test_dataframe_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import math

import pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/test_readme_examples.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pyspark.sql.functions as F
import pytest
from pyspark.sql import SparkSession
Expand Down
2 changes: 2 additions & 0 deletions tests/test_row_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pyspark.sql import Row

from chispa.row_comparer import are_rows_approx_equal, are_rows_equal, are_rows_equal_enhanced
Expand Down
2 changes: 2 additions & 0 deletions tests/test_schema_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import pytest
from pyspark.sql.types import ArrayType, DoubleType, IntegerType, StringType, StructField, StructType

Expand Down
2 changes: 2 additions & 0 deletions tests/test_structfield_comparer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pyspark.sql.types import DoubleType, IntegerType, StructField, StructType

from chispa.structfield_comparer import are_structfields_equal
Expand Down

0 comments on commit 859da48

Please sign in to comment.