Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_language_version:
repos:
# Ruff - Python linter and formatter (replaces Black, isort, flake8, etc.)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.21
rev: v0.16.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down Expand Up @@ -53,7 +53,7 @@ repos:

# markdownlint - Markdown linter
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.49.0
rev: v0.49.1
hooks:
- id: markdownlint
args: [-c, .trunk/configs/.markdownlint.yaml]
Expand Down
2 changes: 1 addition & 1 deletion src/diffbot_kg/clients/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ async def close(self) -> None:
async def __aenter__(self) -> Self:
return self

async def __aexit__(self, *args: Any) -> None:
async def __aexit__(self, *args: object) -> None:
await self.close()
6 changes: 3 additions & 3 deletions src/diffbot_kg/models/response/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from diffbot_kg.models.response.entities import DiffbotEntitiesResponse

__all__ = [
"DiffbotEntitiesResponse",
"DiffbotCoverageReportResponse",
"DiffbotBulkJobCreateResponse",
"DiffbotListBulkJobsResponse",
"DiffbotBulkJobStatusResponse",
"DiffbotCoverageReportResponse",
"DiffbotEntitiesResponse",
"DiffbotListBulkJobsResponse",
]
2 changes: 0 additions & 2 deletions src/diffbot_kg/models/response/bulkjob_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ class DiffbotListBulkJobsResponse(BaseJsonLinesDiffbotResponse):
The create classmethod is the main constructor, which handles converting
an aiohttp response into a DiffbotResponse.
"""

pass
2 changes: 1 addition & 1 deletion tests/functional/clients/test_enhance_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pytest
from aiohttp import ClientResponseError
from diffbot_kg import DiffbotEnhanceClient

from diffbot_kg import DiffbotEnhanceClient
from tests.functional.conftest import (
ORG2_ENTITY_ID,
ORG2_NAME,
Expand Down
1 change: 1 addition & 0 deletions tests/unit/clients/test_base_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from diffbot_kg.clients.base import BaseDiffbotKGClient
from diffbot_kg.clients.session import DiffbotSession
from diffbot_kg.models.response.base import BaseDiffbotResponse
Expand Down
1 change: 1 addition & 0 deletions tests/unit/clients/test_enhance_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from diffbot_kg.clients import DiffbotEnhanceClient
from diffbot_kg.clients.session import DiffbotSession
from diffbot_kg.models.response import (
Expand Down
1 change: 1 addition & 0 deletions tests/unit/clients/test_search_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from diffbot_kg.clients.search import DiffbotSearchClient
from diffbot_kg.clients.session import DiffbotSession
from diffbot_kg.models.response import (
Expand Down
Loading