Skip to content

Commit

Permalink
Correct spelling (#299)
Browse files Browse the repository at this point in the history
* chore: correct spelling

* Fix typo in check validation comment
  • Loading branch information
ScottWilliamAnderson authored Sep 5, 2024
1 parent 5e828fc commit ba3bfd4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cuallee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def __init__(
self.session = session

def __repr__(self):
standard = f"Check(level:{self.level}, desc:{self.name}, rules:{self.sum})"
standard = f"Check(level:{self.level}, description:{self.name}, rules:{self.sum})"
if self.table_name:
standard += f" / table:{self.table_name}"
return standard
Expand Down Expand Up @@ -721,7 +721,7 @@ def not_contained_in(

def not_in(self, column: str, value: Tuple[str, int, float], pct: float = 1.0):
"""
Vaidation of column value not in set of given values
Validation of column value not in set of given values
Args:
column (str): Column name in dataframe
Expand Down Expand Up @@ -762,7 +762,7 @@ def is_contained_in(

def is_in(self, column: str, value: Tuple[str, int, float], pct: float = 1.0):
"""
Vaidation of column value in set of given values
Vaildation of column value in set of given values
Args:
column (str): Column name in dataframe
Expand Down Expand Up @@ -845,12 +845,12 @@ def has_percentile(
self, column: str, value: float, percentile: float, precision: int = 10000
):
"""
Validation of a column percentile value using approximantion
Validation of a column percentile value using approximation
Args:
column (str): Column name in dataframe
value (List[str,number,date]): The condition for the column to match
percentile (float): Value between [0..1] i.e. `0.5` for median
percentile (float): Value between [0,1] i.e. `0.5` for median
precision (float): The precision to calculate percentiles
"""
Expand Down Expand Up @@ -900,7 +900,7 @@ def has_max_by(
Args:
column_source (str): Column used to obtain the row with the max value
column_target (str): Column used to varify the matching value
column_target (str): Column used to verify the matching value
value (str,number): The value to match against
"""
(
Expand All @@ -918,11 +918,11 @@ def has_min_by(
self, column_source: str, column_target: str, value: Union[float, str]
):
"""
Validation the correspondance of a column value based on another column minimum
Validation the correspondence of a column value based on another column minimum
Args:
column_source (str): Column used to obtain the row with the min value
column_target (str): Column used to varify the matching value
column_target (str): Column used to verify the matching value
value (str,number): The value to match against
"""
(
Expand Down Expand Up @@ -1239,7 +1239,7 @@ def has_workflow(
The check validates that:
- Nothing preceds a `New` state
- Nothing preceeds a `New` state
- `In Progress` follows the `New` event
- `Closed` follows the `In Progress` event
- Nothing follows after `Closed` state
Expand Down

0 comments on commit ba3bfd4

Please sign in to comment.