2024-06-27 13:51:01 +03:00
|
|
|
[tool.poetry]
|
|
|
|
name = "quivr-core"
|
2024-07-11 11:06:42 +03:00
|
|
|
version = "0.0.8"
|
2024-06-27 13:51:01 +03:00
|
|
|
description = "Quivr core RAG package"
|
|
|
|
authors = []
|
|
|
|
readme = "README.md"
|
2024-07-09 17:56:05 +03:00
|
|
|
repository = "https://github.com/QuivrHQ/quivr"
|
2024-06-27 13:51:01 +03:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = "^3.11"
|
|
|
|
pydantic = "^2.7.4"
|
|
|
|
langchain-core = "^0.2.10"
|
2024-07-09 16:22:16 +03:00
|
|
|
httpx = "^0.27.0"
|
2024-07-15 20:10:03 +03:00
|
|
|
aiofiles = ">=23.0.0,<25.0.0"
|
2024-07-09 16:22:16 +03:00
|
|
|
faiss-cpu = { version = "^1.8.0.post1", optional = true }
|
|
|
|
langchain-community = { version = "^0.2.6", optional = true }
|
|
|
|
langchain-openai = { version = "^0.1.14", optional = true }
|
|
|
|
|
|
|
|
[tool.poetry.extras]
|
|
|
|
base = ["langchain-community", "faiss-cpu", "langchain-openai"]
|
|
|
|
pdf = []
|
|
|
|
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
mypy = "^1.10.0"
|
|
|
|
pre-commit = "^3.7.1"
|
|
|
|
ipykernel = "*"
|
|
|
|
ruff = "^0.4.8"
|
|
|
|
flake8 = "*"
|
|
|
|
flake8-black = "*"
|
|
|
|
pytest-cov = "^5.0.0"
|
|
|
|
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
pytest-asyncio = "^0.23.7"
|
|
|
|
pytest = "^8.2.2"
|
2024-07-09 18:55:14 +03:00
|
|
|
pytest-xdist = "^3.6.1"
|
2024-07-09 16:22:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
# Remove venv skip when integrated with pre-commit
|
|
|
|
exclude = ["_static", "build", "examples", "notebooks", "venv", ".venv"]
|
|
|
|
ignore_missing_imports = true
|
|
|
|
python_version = "3.11"
|
2024-06-27 13:51:01 +03:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 88
|
|
|
|
exclude = [".git", "__pycache__", ".mypy_cache", ".pytest_cache"]
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"C", # flake8-comprehensions
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"B904",
|
|
|
|
"B006",
|
|
|
|
"E501", # line too long, handled by black
|
|
|
|
"B008", # do not perform function calls in argument defaults
|
|
|
|
"C901", # too complex
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint.isort]
|
|
|
|
order-by-type = true
|
|
|
|
relative-imports-order = "closest-to-furthest"
|
|
|
|
extra-standard-library = ["typing"]
|
|
|
|
section-order = [
|
|
|
|
"future",
|
|
|
|
"standard-library",
|
|
|
|
"third-party",
|
|
|
|
"first-party",
|
|
|
|
"local-folder",
|
|
|
|
]
|
|
|
|
known-first-party = []
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = "--tb=short -ra -v"
|
|
|
|
filterwarnings = ["ignore::DeprecationWarning"]
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|