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 Mar 5, 2024
1 parent 98e9cca commit 0c15bf1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/argilla/client/feedback/schemas/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import warnings
from typing import Any, Dict, Optional, TYPE_CHECKING, Union
from typing import TYPE_CHECKING, Any, Dict, Optional, Union
from uuid import UUID

from argilla.client.feedback.schemas.enums import ResponseStatus
Expand All @@ -28,7 +28,6 @@
from argilla.client.feedback.schemas.questions import QuestionSchema



class ValueSchema(BaseModel):
"""Schema for any `FeedbackRecord` response value.
Expand Down
2 changes: 1 addition & 1 deletion src/argilla/client/feedback/schemas/suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Any, Dict, Literal, Optional, TYPE_CHECKING
from typing import TYPE_CHECKING, Any, Dict, Literal, Optional
from uuid import UUID

from argilla.client.feedback.schemas.response_values import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
TermsMetadataProperty,
)
from argilla.client.feedback.schemas.questions import SpanLabelOption, SpanQuestion, TextQuestion
from argilla.client.feedback.schemas.suggestions import SuggestionSchema
from argilla.client.feedback.schemas.records import FeedbackRecord
from argilla.client.feedback.schemas.remote.records import RemoteSuggestionSchema
from argilla.client.feedback.schemas.suggestions import SuggestionSchema
from argilla.client.feedback.schemas.vector_settings import VectorSettings
from argilla.client.feedback.training.schemas.base import TrainingTask
from argilla.client.models import Framework
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pytest
import random
from datetime import datetime
from sqlalchemy.ext.asyncio import AsyncSession
from typing import Any, List, TYPE_CHECKING, Tuple, Type
from typing import TYPE_CHECKING, Any, List, Tuple, Type
from uuid import UUID

import argilla as rg
import argilla.client.singleton
import pytest
from argilla import FeedbackRecord, SuggestionSchema
from argilla.client.feedback.dataset import FeedbackDataset
from argilla.client.feedback.dataset.remote.dataset import RemoteFeedbackDataset
Expand Down Expand Up @@ -48,6 +47,8 @@
from argilla.client.workspaces import Workspace
from argilla_server.models import User as ServerUser
from argilla_server.settings import settings
from sqlalchemy.ext.asyncio import AsyncSession

from tests.factories import (
DatasetFactory,
RecordFactory,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/client/feedback/schemas/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pytest
from uuid import uuid4

import pytest
from argilla.feedback import (
FeedbackDataset,
ResponseSchema,
Expand Down
15 changes: 14 additions & 1 deletion tests/unit/client/feedback/schemas/test_suggestions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import pytest
# Copyright 2021-present, the Recognai S.L. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest
from argilla.feedback import SuggestionSchema, TextQuestion


Expand Down

0 comments on commit 0c15bf1

Please sign in to comment.