Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 2d80505

Browse files
author
Gabriel Nieves
committed
ran linter
1 parent 946b95c commit 2d80505

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

backend/graphrag_app/api/prompt_tuning.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from pathlib import Path
77

88
import graphrag.api as api
9-
import yaml
109
from fastapi import (
1110
APIRouter,
1211
Depends,

backend/graphrag_app/api/query.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import os
55
import traceback
6-
from pathlib import Path
76

87
from fastapi import (
98
APIRouter,
@@ -17,7 +16,6 @@
1716

1817
from graphrag_app.logger.load_logger import load_pipeline_logger
1918
from graphrag_app.typing.models import (
20-
GraphDriftRequest,
2119
GraphGlobalRequest,
2220
GraphRequest,
2321
GraphResponse,

backend/graphrag_app/api/query_streaming.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import json
55
import os
66
import traceback
7-
from typing import Dict, List
87

98
from fastapi import (
109
APIRouter,

backend/graphrag_app/typing/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from io import StringIO
55
from typing import (
66
Any,
7-
Dict,
87
List,
98
Optional,
109
)

backend/graphrag_app/utils/azure_clients.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the MIT License.
33

44
import os
5+
from pathlib import PurePosixPath
56

67
from azure.cosmos import (
78
ContainerProxy,
@@ -11,7 +12,6 @@
1112
from azure.identity import DefaultAzureCredential
1213
from azure.storage.blob import BlobServiceClient
1314
from azure.storage.blob.aio import BlobServiceClient as BlobServiceClientAsync
14-
from pathlib import PurePosixPath
1515

1616
ENDPOINT_ERROR_MSG = "Could not find connection string in environment variables"
1717

@@ -133,7 +133,6 @@ def __init__(self) -> None:
133133
else:
134134
self.storage_account_name = self.storage_account_hostname.split(".")[0]
135135

136-
137136
def get_blob_service_client(self) -> BlobServiceClient:
138137
"""
139138
Returns the blob service client.

backend/graphrag_app/utils/common.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@
99
import os
1010
import sys
1111
import traceback
12-
from pathlib import Path
13-
from typing import Annotated, Dict, List
1412
from io import StringIO
15-
from typing import Annotated, Tuple
13+
from pathlib import Path
14+
from typing import Annotated, Dict, Tuple
1615

1716
import pandas as pd
1817
from azure.core.exceptions import ResourceNotFoundError
1918
from azure.cosmos import ContainerProxy, exceptions
2019
from azure.identity import DefaultAzureCredential
2120
from azure.storage.blob.aio import ContainerClient
22-
from fastapi import Header, HTTPException
21+
from fastapi import Header, HTTPException, status
2322
from graphrag.config.load_config import load_config
2423
from graphrag.config.models.graph_rag_config import GraphRagConfig
25-
from fastapi import Header, HTTPException, status
2624

2725
from graphrag_app.logger.load_logger import load_pipeline_logger
2826
from graphrag_app.typing.models import QueryData
@@ -393,6 +391,7 @@ def update_multi_index_context_data(
393391
updated_context_data[key] = updated_entry
394392
return updated_context_data
395393

394+
396395
async def create_cache(container_client: ContainerClient) -> None:
397396
"""
398397
Create a file cache (csv).

backend/scripts/indexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# from graphrag.index.create_pipeline_config import create_pipeline_config
1313
from graphrag.config.enums import IndexingMethod
1414
from graphrag.config.load_config import load_config
15-
from graphrag.config.models.community_reports_config import CommunityReportsConfig
1615
from graphrag.config.models.graph_rag_config import GraphRagConfig
1716
from graphrag.index.typing.pipeline_run_result import PipelineRunResult
1817
from graphrag.index.workflows.factory import PipelineFactory

0 commit comments

Comments
 (0)