From 9381a7835037789058adb0bc1ec8aa38affcbf11 Mon Sep 17 00:00:00 2001 From: Aldrian Harjati Date: Wed, 13 Sep 2023 08:57:47 -0400 Subject: [PATCH] fix more linting issues from merge --- src/validator/checks.py | 4 +--- src/validator/create_schemas.py | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/validator/checks.py b/src/validator/checks.py index 5a6777e9..29677a18 100644 --- a/src/validator/checks.py +++ b/src/validator/checks.py @@ -40,9 +40,7 @@ class SBLCheck(Check): Don't use this class directly. Make use of the SBLErrorCheck and SBLWarningCheck subclasses below.""" - def __init__( - self, check_fn: Callable, id: str = None, warning=False, *args, **kwargs - ): + def __init__(self, check_fn: Callable, id: str = None, warning=False, *args, **kwargs): """Custom init method that verifies the presence of `name` and `id` in kwargs creates a custom class attribute called `warning`. All other initializaiton is handled by the parent Check class. diff --git a/src/validator/create_schemas.py b/src/validator/create_schemas.py index 1312f3f7..e582747b 100644 --- a/src/validator/create_schemas.py +++ b/src/validator/create_schemas.py @@ -38,10 +38,7 @@ def print_schema_errors(errors: SchemaErrors, phase: str): # this is just a string that we'd need to parse manually check_output = schema_error.args[0] - print( - f"{phase} Validation `{check_name}` with id: `{check_id}` " - "failed for column `{column_name}`" - ) + print(f"{phase} Validation `{check_name}` with id: `{check_id}` failed for column `{{column_name}}`") print(check_output) print("")