Skip to content

Commit

Permalink
Add quotes back in to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 19, 2024
1 parent 50fa02e commit 50d4c30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scribe_data/cli/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

from scribe_data.utils import DEFAULT_JSON_EXPORT_DIR

# MARK: CLI Variables

LANGUAGE_DATA_EXTRACTION_DIR = Path(__file__).parent.parent / "language_data_extraction"

LANGUAGE_METADATA_FILE = (
Expand Down Expand Up @@ -217,12 +219,12 @@ def validate_single_item(item, valid_options, item_type):
):
closest_match = difflib.get_close_matches(item, valid_options, n=1)
closest_match_str = (
f" The closest matching {item_type} is {closest_match[0]}."
f" The closest matching {item_type} is '{closest_match[0]}'."
if closest_match
else ""
)

return f"Invalid {item_type} {item}.{closest_match_str}"
return f"Invalid {item_type} '{item}'.{closest_match_str}"

return None

Expand Down

0 comments on commit 50d4c30

Please sign in to comment.