Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 16, 2024
1 parent 68deac0 commit dd52b9f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions argilla-server/src/argilla_server/api/schemas/v1/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
]


Expand Down

0 comments on commit dd52b9f

Please sign in to comment.