Files
roboco/pyproject.toml
T

210 lines
4.8 KiB
TOML
Raw Normal View History

2025-12-10 02:49:54 +01:00
[project]
name = "roboco"
version = "0.1.0"
description = "AI Agents Company - A virtual organization of AI agents functioning as a software development workforce"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Renzo Franceschini" }]
requires-python = ">=3.11"
dependencies = [
# Core
"pydantic>=2.5.0",
"pydantic-settings>=2.1.0",
# API
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"websockets>=12.0",
# Database
"sqlalchemy[asyncio]>=2.0.25",
"asyncpg>=0.29.0", # PostgreSQL async driver
"alembic>=1.13.0", # Migrations
# Cache/Queue
"redis>=5.0.0",
"hiredis>=2.3.0", # Redis performance
# RAG (piragi with PostgreSQL/pgvector backend)
"piragi[postgres]>=0.1.0",
# AI/LLM
"anthropic>=0.18.0",
"openai>=1.10.0", # For embeddings
"tiktoken>=0.5.0", # Token counting
# Utilities
"httpx>=0.26.0",
"python-multipart>=0.0.6",
"python-jose[cryptography]>=3.3.0", # JWT
"passlib[bcrypt]>=1.7.4", # Password hashing
"tenacity>=8.2.0", # Retry logic
"structlog>=24.1.0", # Structured logging
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
"httpx>=0.26.0", # For TestClient
"factory-boy>=3.3.0",
"faker>=22.0.0",
# Code Quality
"ruff>=0.2.0",
"mypy>=1.8.0",
# Type Stubs
"types-redis>=4.6.0",
"types-passlib>=1.7.7",
"types-python-jose>=3.3.0",
# Development
"ipython>=8.20.0",
"rich>=13.7.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.5.0",
"mkdocstrings[python]>=0.24.0",
]
[project.scripts]
roboco = "roboco.cli:main"
[project.urls]
Homepage = "https://github.com/renzof/roboco"
Documentation = "https://roboco.dev/docs"
Repository = "https://github.com/renzof/roboco"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/roboco"]
# =============================================================================
# RUFF Configuration
# =============================================================================
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # eradicate (commented code)
"PL", # Pylint
"RUF", # Ruff-specific
]
ignore = [
"E501", # Line too long (handled by formatter)
"PLR0913", # Too many arguments
"PLR2004", # Magic value comparison
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["ARG", "PLR2004"]
"**/migrations/*.py" = ["ERA"]
[tool.ruff.lint.isort]
known-first-party = ["roboco"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
# =============================================================================
# MyPy Configuration
# =============================================================================
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = 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_configs = true
show_error_codes = true
show_column_numbers = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"redis.*",
"anthropic.*",
"tiktoken.*",
"piragi.*",
]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
# =============================================================================
# Pytest Configuration
# =============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"-ra",
]
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["src/roboco"]
branch = true
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/migrations/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"@abstractmethod",
]
fail_under = 80
show_missing = true