Skip to content

Commit c5faf8c

Browse files
committed
replace curl by httpx
1 parent 38c2317 commit c5faf8c

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies = [
1515
"pathspec>=0.12.1",
1616
"typing_extensions>= 4.0.0; python_version < '3.10'",
1717
"uvicorn>=0.11.7", # Minimum safe release (https://osv.dev/vulnerability/PYSEC-2020-150)
18+
"httpx>= 0.28.1",
1819
]
1920

2021
license = {file = "LICENSE"}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
click>=8.0.0
22
fastapi[standard]>=0.109.1 # Vulnerable to https://osv.dev/vulnerability/PYSEC-2024-38
3+
httpx>=0.28.1
34
pathspec>=0.12.1
45
pydantic
56
python-dotenv

src/server/query_processor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
from gitingest.query_parser import IngestionQuery, parse_query
1111
from gitingest.utils.git_utils import validate_github_token
1212
from server.models import IngestErrorResponse, IngestResponse, IngestSuccessResponse
13-
from server.server_config import (
14-
DEFAULT_MAX_FILE_SIZE_KB,
15-
MAX_DISPLAY_SIZE,
16-
)
13+
from server.server_config import DEFAULT_MAX_FILE_SIZE_KB, MAX_DISPLAY_SIZE
1714
from server.server_utils import Colors, log_slider_to_size
1815

1916

tests/test_git_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212
import pytest
1313

1414
from gitingest.utils.exceptions import InvalidGitHubTokenError
15-
from gitingest.utils.git_utils import (
16-
create_git_auth_header,
17-
create_git_command,
18-
is_github_host,
19-
validate_github_token,
20-
)
15+
from gitingest.utils.git_utils import create_git_auth_header, create_git_command, is_github_host, validate_github_token
2116

2217
if TYPE_CHECKING:
2318
from pathlib import Path

0 commit comments

Comments
 (0)