From dd52b9f3c66769dbbb644cc436f32c9fa48bb6d1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:16:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../argilla_server/api/schemas/v1/users.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/argilla-server/src/argilla_server/api/schemas/v1/users.py b/argilla-server/src/argilla_server/api/schemas/v1/users.py index 1587898d4a..020749dd11 100644 --- a/argilla-server/src/argilla_server/api/schemas/v1/users.py +++ b/argilla-server/src/argilla_server/api/schemas/v1/users.py @@ -23,22 +23,21 @@ USER_PASSWORD_MAX_LENGTH = 100 UserFirstName = Annotated[ - constr(min_length=1, strip_whitespace=True), - Field(..., description="The first name for the user") + constr(min_length=1, strip_whitespace=True), Field(..., description="The first name for the user") ] UserLastName = Annotated[ - constr(min_length=1, strip_whitespace=True), - Field(..., description="The last name for the user") -] -UserUsername = Annotated[ - str, - Field(..., min_length=1, description="The username for the user") + constr(min_length=1, strip_whitespace=True), Field(..., description="The last name for the user") ] +UserUsername = Annotated[str, Field(..., min_length=1, description="The username for the user")] UserPassword = Annotated[ str, - Field(..., - min_length=USER_PASSWORD_MIN_LENGTH, max_length=USER_PASSWORD_MAX_LENGTH, description="The password for the user") + Field( + ..., + min_length=USER_PASSWORD_MIN_LENGTH, + max_length=USER_PASSWORD_MAX_LENGTH, + description="The password for the user", + ), ]