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

[project]
name = "excelminer"
dynamic = ["version"]
description = "Extract and normalize Excel workbook artifacts (sheets, connections, formulas) into a lightweight graph."
readme = "readme.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
authors = [
    { name = "Brent Carpenetti", email = "brentwc.git@pm.me" },
]
dependencies = [
    "hostxray",
    "oletools",
    "openpyxl",
]

[project.optional-dependencies]
calamine = [
    "pandas",
    "python-calamine",
]
com = [
    "pywin32; platform_system == 'Windows'",
]
test = [
    "pytest>=7.0.0",
    "pytest-cov>=4.0.0",
]
dev = [
    "pytest>=7.0.0",
    "pytest-cov>=4.0.0",
    "black",
    "flake8",
    "mypy",
    "isort",
    "pre-commit",
]
all = [
    "pandas",
    "python-calamine",
    "pywin32; platform_system == 'Windows'",
    "pytest>=7.0.0",
    "pytest-cov>=4.0.0",
    "black",
    "flake8",
    "mypy",
    "isort",
    "pre-commit",
]

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

[tool.setuptools.package-data]
excelminer = [
    "docs/*.md",
    "docs/site/*.html",
    "docs/site/assets/*",
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
version = { attr = "excelminer.__version__" }

[tool.black]
line-length = 88
target-version = ['py312', 'py313', 'py314']
include = '\.pyi?$'

[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true

[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
