Skip to content

Commit

Permalink
Remove remaining non-class @staticmethod usage
Browse files Browse the repository at this point in the history
Co-authored-by: lchen-2101 <73617864+lchen-2101@users.noreply.github.com>
  • Loading branch information
hkeeler and lchen-2101 authored Nov 7, 2023
1 parent ddb6682 commit 6e30b5f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions regtech_data_validator/create_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def get_phase_2_schema_for_lei(context: dict[str, str] | None = None):
return get_schema_by_phase_for_lei(phase_2_template, "phase_2", context)


@staticmethod
def _get_check_fields(check: Check, primary_column: str) -> list[str]:
"""
Retrieves unique sorted list of fields associated with a given Check
Expand All @@ -47,7 +46,6 @@ def _get_check_fields(check: Check, primary_column: str) -> list[str]:
return fields


@staticmethod
def _filter_valid_records(df: pd.DataFrame, check_output: pd.Series, fields: list[str]) -> pd.DataFrame:
"""
Return only records and fields associated with a given `Check`'s
Expand All @@ -65,7 +63,6 @@ def _filter_valid_records(df: pd.DataFrame, check_output: pd.Series, fields: lis
return failed_records_df


@staticmethod
def _records_to_fields(failed_records_df: pd.DataFrame) -> pd.DataFrame:
"""
Transforms a DataFrame with columns per Check field to DataFrame with a row per field
Expand All @@ -81,7 +78,6 @@ def _records_to_fields(failed_records_df: pd.DataFrame) -> pd.DataFrame:
return failed_record_fields_df


@staticmethod
def _add_validation_metadata(failed_check_fields_df: pd.DataFrame, check: SBLCheck):
"""
Add SBLCheck metadata (id, name, description, severity)
Expand Down

0 comments on commit 6e30b5f

Please sign in to comment.