From 10f9190e5845fda6a3da83b7d34798aee8cbfa43 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 18 Feb 2024 14:56:01 +0100 Subject: [PATCH] refactor --- rendercv/cli.py | 12 +++++++----- rendercv/data_models.py | 4 +++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/rendercv/cli.py b/rendercv/cli.py index 19ff85e..f27e644 100644 --- a/rendercv/cli.py +++ b/rendercv/cli.py @@ -237,11 +237,13 @@ def handle_validation_error(exception: pydantic.ValidationError): if isinstance(input, (dict, list)): input = "" - new_errors.append({ - "loc": str(location), - "msg": message, - "input": str(input), - }) + new_errors.append( + { + "loc": str(location), + "msg": message, + "input": str(input), + } + ) # Print the errors in a nice table: table = rich.table.Table( diff --git a/rendercv/data_models.py b/rendercv/data_models.py index a2f4891..8f69bcc 100644 --- a/rendercv/data_models.py +++ b/rendercv/data_models.py @@ -955,7 +955,9 @@ class RenderCVDataModel(RenderCVBaseModel): design: RenderCVDesign | pydantic.json_schema.SkipJsonSchema[Any] = pydantic.Field( default=ClassicThemeOptions(theme="classic"), title="Design", - description="The design information of the CV.", + description=( + "The design information of the CV. The default is the classic theme." + ), ) @pydantic.field_validator("design", mode="before")