new file: Dockerfile new file: LICENSE new file: README.md new file: app.py new file: docker-compose.yml new file: pyproject.toml new file: requirements.lock
90 lines
2.2 KiB
TOML
90 lines
2.2 KiB
TOML
[project]
|
|
name = "megafarse-monorepo"
|
|
version = "0.0.1"
|
|
description = "MegaFarse monorepo"
|
|
authors = [
|
|
{ name = "Stan Girard", email = "stan@quivr.app" },
|
|
{ name = "Chloé Daems", email = "chloe@quivr.app" },
|
|
{ name = "Amine Dirhoussi", email = "amine@quivr.app" },
|
|
{ name = "Jacopo Chevallard", email = "jacopo@quivr.app" },
|
|
{ name = "Russell Ballestrini", email = "russell@ballestrini.net" },
|
|
]
|
|
readme = "README.md"
|
|
requires-python = ">= 3.11"
|
|
dependencies = ["packaging>=22.0"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.rye]
|
|
python = ">= 3.11"
|
|
managed = true
|
|
universal = true
|
|
dev-dependencies = [
|
|
"mypy>=1.11.1",
|
|
"pre-commit>=3.8.0",
|
|
"ipykernel>=6.29.5",
|
|
"ruff>=0.6.0",
|
|
"flake8>=7.1.1",
|
|
"flake8-black>=0.3.6",
|
|
"pytest-asyncio>=0.23.8",
|
|
"pytest>=8.3.3",
|
|
"pytest-xdist>=3.6.1",
|
|
"pytest-cov>=5.0.0",
|
|
]
|
|
|
|
[tool.rye.workspace]
|
|
members = ["libs/*"]
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/megaparse"]
|
|
|
|
[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"
|
|
asyncio_default_fixture_loop_scope = "session"
|
|
filterwarnings = ["ignore::DeprecationWarning"]
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"base: these tests require quivr-core with extra `base` to be installed",
|
|
"tika: these tests require a tika server to be running",
|
|
"unstructured: these tests require `unstructured` dependency",
|
|
]
|