2e81fa57bd
Adds the uv lockfile generated from pyproject.toml and updates tool.mypy.python_version to 3.12 so third-party stubs parse cleanly while keeping runtime compatibility at Python 3.11.
59 lines
1.3 KiB
TOML
59 lines
1.3 KiB
TOML
[project]
|
|
name = "odoo-ocr"
|
|
version = "0.1.0"
|
|
description = "Local-first invoice OCR pipeline that produces Odoo Enterprise XML."
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"pydantic>=2.0",
|
|
"pydantic-settings>=2.0",
|
|
"httpx>=0.27",
|
|
"tenacity>=8.0",
|
|
"pymupdf>=1.24",
|
|
"pdf2image>=1.17",
|
|
"Pillow>=10.0",
|
|
"opencv-python-headless>=4.10",
|
|
"lxml>=5.0",
|
|
"pyyaml>=6.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"pytest-mock>=3.14",
|
|
"mypy>=1.10",
|
|
"ruff>=0.5",
|
|
]
|
|
|
|
[project.scripts]
|
|
odoo-ocr = "odoo_ocr.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|
|
pythonpath = ["src"]
|
|
|
|
[tool.mypy]
|
|
# Checked against Python 3.12 (the project's venv interpreter) so that third-party
|
|
# stubs using newer syntax (e.g. numpy >= 2.5) parse cleanly. The code itself
|
|
# must stay compatible with the 3.11 minimum declared in `requires-python`.
|
|
python_version = "3.12"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|
|
ignore_missing_imports = true
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|