bimquery-api / pyproject.toml
BIM Query Deploy
Claude Opus 4.7 (1M context)
deploy: initial BIM Query API on Hugging Face Spaces
e6be672
Raw History Blame Contribute Delete
3.36 kB
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "bim-query"
version = "0.1.0"
description = "Natural-language query engine for BIM / IFC models."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "AGPL-3.0-or-later" }
authors = [
{ name = "Mattia Zatelli", email = "hello@bimquery.net" },
]
keywords = [
"bim",
"ifc",
"fastapi",
"natural-language",
"llm",
"pgvector",
"ifcopenshell",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["dependencies", "optional-dependencies"]
[project.urls]
Homepage = "https://github.com/mzat-dev/bimquery"
Repository = "https://github.com/mzat-dev/bimquery"
Issues = "https://github.com/mzat-dev/bimquery/issues"
Changelog = "https://github.com/mzat-dev/bimquery/blob/main/CHANGELOG.md"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["app*"]
exclude = ["tests*", "_internal-docs*", "debug_client*", "scripts*"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
# -----------------------------------------------------------------------------
# Tooling configuration
# -----------------------------------------------------------------------------
[tool.black]
line-length = 88
target-version = ["py311"]
extend-exclude = '''
/(
\.venv
| _internal-docs
| alembic/versions
)/
'''
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = ["_internal-docs", "alembic/versions"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # function call in default arg (FastAPI Depends pattern)
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # turn on incrementally
ignore_missing_imports = true
exclude = ["_internal-docs/", "alembic/versions/"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-ra --strict-markers"
markers = [
"unit: fast in-process unit tests",
"integration: require Postgres/Redis/S3",
"e2e: full end-to-end tests with a real IFC file",
"slow: tests that take more than a few seconds",
]
[tool.coverage.run]
source = ["app"]
omit = [
"app/intents/_deferred/*",
"tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]