Skip to content
Merged
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
23 changes: 11 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ repos:
files: ^src/
additional_dependencies:
[
chardet,
click,
fastapi-analytics,
click>=8.0.0,
"fastapi[standard]>=0.109.1",
pydantic,
pytest-asyncio,
python-dotenv,
slowapi,
starlette,
starlette>=0.40.0,
tiktoken,
tomli,
uvicorn,
uvicorn>=0.11.7,
]
- id: pylint
name: pylint for tests
Expand All @@ -113,17 +113,16 @@ repos:
- --rcfile=tests/.pylintrc
additional_dependencies:
[
chardet,
click,
fastapi-analytics,
pytest,
click>=8.0.0,
"fastapi[standard]>=0.109.1",
pydantic,
pytest-asyncio,
python-dotenv,
slowapi,
starlette,
tomli,
starlette>=0.40.0,
tiktoken,
uvicorn,
tomli,
uvicorn>=0.11.7,
]

- repo: meta
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ readme = {file = "README.md", content-type = "text/markdown" }
requires-python = ">= 3.8"
dependencies = [
"click>=8.0.0",
"fastapi[standard]>=0.109.1", # Vulnerable to https://osv.dev/vulnerability/PYSEC-2024-38
"pydantic",
"python-dotenv",
"slowapi",
"starlette>=0.40.0", # Vulnerable to https://osv.dev/vulnerability/GHSA-f96h-pmfr-66vw
"tiktoken",
"tomli",
"typing_extensions; python_version < '3.10'",
"uvicorn>=0.11.7", # Vulnerable to https://osv.dev/vulnerability/PYSEC-2020-150
]

license = {file = "LICENSE"}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
chardet
click>=8.0.0
fastapi[standard]>=0.109.1 # Vulnerable to https://osv.dev/vulnerability/PYSEC-2024-38
pydantic
python-dotenv
slowapi
starlette>=0.40.0 # Vulnerable to https://osv.dev/vulnerability/GHSA-f96h-pmfr-66vw
Expand Down
7 changes: 2 additions & 5 deletions src/gitingest/ingestion_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path
from typing import Optional, Set

from pydantic import BaseModel, Field
from pydantic import BaseModel, ConfigDict, Field

from gitingest.config import MAX_FILE_SIZE

Expand Down Expand Up @@ -58,10 +58,7 @@ class IngestionQuery(BaseModel): # pylint: disable=too-many-instance-attributes
ignore_patterns: Optional[Set[str]] = None
include_patterns: Optional[Set[str]] = None

class Config:
"""Pydantic model configuration."""

arbitrary_types_allowed = True
model_config = ConfigDict(arbitrary_types_allowed=True)

def extract_clone_config(self) -> CloneConfig:
"""
Expand Down
Loading