[project]
name = "smoosense"
version = "0.1.32"
description = "Smoothly make sense of your large multi-modal datasets"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "Apache-2.0"}
keywords = ["data-analysis", "visualization", "multimodal", "parquet", "csv", "sql", "duckdb"]
authors = [
    {name = "SmooSense AI", email = "contact@smoosense.ai"}
]
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: Apache Software License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Scientific/Engineering :: Visualization",
    "Topic :: Database",
    "Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
    "authlib>=1.0",
    "boto3>=1.39.11",
    "click>=8.1.8",
    "duckdb>=1.2.1",
    "flask>=3.1.0",
    "hdbscan>=0.8.40",
    "lancedb>=0.25.2",
    "pyarrow>=20.0.0",
    "pydantic>=2.11.7",
    "pytz>=2025.2",
    "requests>=2.32.3",
    "rich>=14.0.0",
    "tqdm>=4.67.1",
    "transformers>=4.57.3",
    "umap-learn>=0.5.9.post2",
]

[project.urls]
Homepage = "https://smoosense.ai"
Documentation = "https://smoosense.ai/docs/"
Repository = "https://github.com/SmooSenseAI/smoosense"
"Source Code" = "https://github.com/SmooSenseAI/smoosense"
"Bug Tracker" = "https://github.com/SmooSenseAI/smoosense/issues"
Changelog = "https://github.com/SmooSenseAI/smoosense/releases"

[project.optional-dependencies]
jupyter = [
    "pandas>=2.3.0",
    "pyarrow>=20.0.0",
    "ipython>=8.0.0",
]
daft = [
    "smoosense[jupyter]",
    "daft>=0.3.0",
]
images = [
    "torch>=2.0.0",
    "pillow>=10.0.0",
]

[dependency-groups]
dev = [
    "datamodel-code-generator>=0.31.2",
    "pytest>=8.0.0",
    "twine>=6.1.0",
    "numpy>=2.0.2",
    "pandas>=2.3.0",
    "playwright>=1.53.0",
    "pyarrow>=20.0.0",
    "zappa>=0.60.2",
    "ruff>=0.12.9",
    "mypy>=1.17.1",
    "types-requests>=2.31.0.6",
    "pandas-stubs>=2.0.0",
    "line-profiler>=5.0.0",
]

[tool.setuptools]
include-package-data = false

[tool.setuptools.packages.find]
where = ["."]
include = ["smoosense*"]
exclude = ["smoosense.statics*", "app_dev*"]
namespaces = false

[tool.setuptools.package-data]
smoosense = ["statics/**/*", "statics/**/.*"]

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project.scripts]
sense = "smoosense.cli:main"
sense-ingest-images = "smoosense.images.ingest:main"

# Ruff configuration
[tool.ruff]
target-version = "py39"
line-length = 100
exclude = [
    "tests_integration/doc_*.py",  # Skip doc test files
    "app_dev.py",  # Development-only file, not included in package
]

[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
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true

# MyPy configuration
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
exclude = [
    "app_dev.py",  # Development-only file, not included in package
    "tests/",  # Test files don't need strict typing
]

[[tool.mypy.overrides]]
module = ["authlib.*", "boto3.*", "botocore.*", "pandas.*", "IPython.*", "daft.*", "lancedb.*", "pyarrow.*", "torch.*", "PIL.*", "transformers.*", "tqdm.*", "umap.*"]
ignore_missing_imports = true
