Skip to content

Commit 548e5b0

Browse files
committed
style/chore: fix precommit deps and styling
1 parent fc5c14a commit 548e5b0

File tree

9 files changed

+1
-11
lines changed

9 files changed

+1
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ repos:
2929
types-urllib3,
3030
types-aiofiles,
3131
StrEnum,
32-
horde_model_reference==0.9.0,
32+
horde_model_reference>=2.0.0,
3333
]

examples/ai_horde_client/text/async_text_generate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ async def async_text_generate_example(
2828
simple_client: AIHordeAPIAsyncSimpleClient,
2929
apikey: str = ANON_API_KEY,
3030
) -> None:
31-
3231
status_response: TextGenerateStatusResponse
3332
job_id: JobID
3433

horde_sdk/ai_horde_api/apimodels/_documents.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def validate_format(cls, value: DocumentFormat | str) -> DocumentFormat | str:
4848

4949

5050
class AIHordeGetPrivacyPolicyRequest(BaseAIHordeRequest, AIHordeDocumentRequestMixin):
51-
5251
@override
5352
@classmethod
5453
def get_api_model_name(cls) -> str | None:
@@ -71,7 +70,6 @@ def get_default_success_response_type(cls) -> type[HordeDocument]:
7170

7271

7372
class AIHordeGetSponsorsRequest(BaseAIHordeRequest, AIHordeDocumentRequestMixin):
74-
7573
@override
7674
@classmethod
7775
def get_api_model_name(cls) -> str | None:
@@ -94,7 +92,6 @@ def get_default_success_response_type(cls) -> type[HordeDocument]:
9492

9593

9694
class AIHordeGetTermsRequest(BaseAIHordeRequest, AIHordeDocumentRequestMixin):
97-
9895
@override
9996
@classmethod
10097
def get_api_model_name(cls) -> str | None:

horde_sdk/ai_horde_api/apimodels/_users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ def get_query_fields(cls) -> list[str]:
414414

415415

416416
class SingleUserDetailsRequest(BaseAIHordeRequest, RequestSpecifiesUserIDMixin):
417-
418417
@override
419418
@classmethod
420419
def get_api_model_name(cls) -> None:

horde_sdk/ai_horde_api/apimodels/generate/text/_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ class ModelPayloadRootKobold(HordeAPIData):
186186

187187
@Unhashable
188188
class ModelGenerationInputKobold(ModelPayloadRootKobold):
189-
190189
pass
191190

192191

tests/ai_horde_api/test_ai_horde_api_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,6 @@ def test_problem_payload() -> None:
819819

820820

821821
def test_problem_gen_request_response() -> None:
822-
823822
example_json = """
824823
{
825824
"id": "00000000-0000-0000-0000-000000000000",

tests/ai_horde_api/test_ai_horde_stats_api_calls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class TestAIHordeStats:
22-
2322
@pytest.mark.asyncio
2423
async def test_get_image_stats_models(self) -> None:
2524
async with (

tests/ai_horde_api/test_ai_horde_status_api_calls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323

2424
class TestAIHordeStatus:
25-
2625
@pytest.mark.asyncio
2726
async def test_ai_horde_heartbeat(self) -> None:
2827
async with (

tests/ai_horde_api/test_dynamically_validate_against_swagger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def all_ai_horde_model_defs_in_swagger(swagger_doc: SwaggerDoc) -> None:
112112
"Consider giving it a unique name on the API.",
113113
)
114114
else:
115-
116115
assert (
117116
request_type.get_api_model_name() in swagger_defined_models
118117
), f"Model is defined in horde_sdk, but not in swagger: {request_type.get_api_model_name()}"

0 commit comments

Comments
 (0)