[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "locollm"
version = "0.2.0"
description = "Local Collaborative LLMs -- Frontier AI on a Student Budget"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
authors = [
    { name = "Michael Borck", email = "michael@borck.id.au" },
]
keywords = ["llm", "lora", "quantization", "local-inference", "education"]
classifiers = [
    "Development Status :: 2 - Pre-Alpha",
    "Intended Audience :: Education",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
    "pyyaml",
    "requests",
]

[dependency-groups]
dev = [
    "pytest",
    "ruff",
    "mypy",
    "types-requests",
    "types-PyYAML",
]
docs = [
    "mkdocs-material",
]
benchmark = [
    "lm-eval[hf]",
]

[project.urls]
Homepage = "https://github.com/michael-borck/loco-llm"
Repository = "https://github.com/michael-borck/loco-llm"
Issues = "https://github.com/michael-borck/loco-llm/issues"

[project.scripts]
loco = "locollm.cli:main"

# --- Tool configuration ---

[tool.ruff]
target-version = "py310"
line-length = 99

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

[tool.ruff.lint]
select = [
    "E",    # pycodestyle errors
    "W",    # pycodestyle warnings
    "F",    # pyflakes
    "I",    # isort
    "UP",   # pyupgrade
    "B",    # flake8-bugbear
    "SIM",  # flake8-simplify
]

[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false

[tool.pytest.ini_options]
testpaths = ["tests"]
