From eb65206a9c9b4ef5e7d70e801e176e51cd6e2f00 Mon Sep 17 00:00:00 2001 From: Kylie Geller Date: Tue, 7 Nov 2023 13:58:43 -0500 Subject: [PATCH] formatting --- scripts/schema/cleaner.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/schema/cleaner.py b/scripts/schema/cleaner.py index 719b7f1d2..10e54213e 100644 --- a/scripts/schema/cleaner.py +++ b/scripts/schema/cleaner.py @@ -281,7 +281,8 @@ def check_example_value(field: Union[List, FieldEntry], strict: Optional[bool] = if isinstance(example_value, (list, dict)): field_name: str = field['field_details']['name'] - msg: str = "Example value for field `{}` contains an object or array which must be quoted to avoid YAML interpretation.".format(field_name) + msg: str = "Example value for field `{}` contains an object or array which must be quoted to avoid YAML interpretation.".format( + field_name) strict_warning_handler(msg, strict) # Examples with arrays must be handled @@ -295,13 +296,15 @@ def check_example_value(field: Union[List, FieldEntry], strict: Optional[bool] = for example_value in example_values: match = re.match(pattern, example_value) if not match: - msg = "Example value for field `{}` does not match the regex defined in the pattern attribute: `{}`.".format(name, pattern) + msg = "Example value for field `{}` does not match the regex defined in the pattern attribute: `{}`.".format( + name, pattern) strict_warning_handler(msg, strict) if expected_values: for example_value in example_values: if example_value not in expected_values: - msg = "Example value `{}` for field `{}` is not one of the values defined in `expected_value`: {}.".format(example_value, name, example_values) + msg = "Example value `{}` for field `{}` is not one of the values defined in `expected_value`: {}.".format( + example_value, name, example_values) strict_warning_handler(msg, strict)