Skip to content

Commit

Permalink
Ruff and Black linting seem to be at odds. So trying to resolve that
Browse files Browse the repository at this point in the history
To pass the linter action
  • Loading branch information
jcadam14 committed Dec 5, 2023
1 parent 4fcc327 commit 30b9439
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions regtech_data_validator/phase_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
is_valid_enum,
id="E0160",
name="ct_loan_term_flag.invalid_enum_value",
description=("'Loan term: NA/NP flag' must equal 900, 988, or 999."),
description="'Loan term: NA/NP flag' must equal 900, 988, or 999.",
severity=Severity.ERROR,
element_wise=True,
accepted_values=[
Expand Down Expand Up @@ -895,7 +895,7 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
is_valid_enum,
id="E0380",
name="pricing_interest_rate_type.invalid_enum_value",
description=("'Interest rate type' must equal 1, 2, 3, 4, 5, 6, or 999."),
description="'Interest rate type' must equal 1, 2, 3, 4, 5, 6, or 999.",
severity=Severity.ERROR,
element_wise=True,
accepted_values=[
Expand All @@ -917,7 +917,9 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
is_number,
id="E0400",
name="pricing_init_rate_period.invalid_numeric_format",
description="When present, 'adjustable rate transaction: initial rate period' must be a whole number.",
description=(
"When present, 'adjustable rate transaction: initial rate period' must be a whole number."
),
severity=Severity.ERROR,
element_wise=True,
accept_blank=True,
Expand Down Expand Up @@ -945,7 +947,9 @@ def get_phase_1_and_2_validations_for_lei(context: dict[str, str] | None = None)
is_greater_than,
id="E0401",
name="pricing_init_rate_period.invalid_numeric_value",
description="When present, 'adjustable rate transaction: initial rate period' must be greater than 0.",
description=(
"When present, 'adjustable rate transaction: initial rate period' must be greater than 0."
),
severity=Severity.ERROR,
element_wise=True,
min_value="0",
Expand Down

0 comments on commit 30b9439

Please sign in to comment.