pyproject.toml•3.32 kB
[project]
name = "toolfront"
version = "0.3.3"
description = "Build AI applications in Markdown."
readme = "README.md"
authors = [
{ name = "Esteban Safranchik", email = "esteban@statespace.com" },
{ name = "Gavin Chan", email = "gavin@statespace.com" }
]
license = { text = "MIT" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"click>=8.2.1",
"fastapi>=0.120.0",
"httpx>=0.28.1",
"mcp[cli]>=1.18.0",
"pydantic>=2.12.3",
"pydantic-ai-slim[anthropic,bedrock,cohere,google,groq,huggingface,mistral,openai,vertexai]>=1.1.0",
"pytest>=8.4.1",
"rich>=14.1.0",
"tabulate>=0.9.0",
]
[project.scripts]
toolfront = "toolfront.main:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["toolfront*"]
[project.urls]
Homepage = "https://github.com/statespace-tech/toolfront"
Repository = "https://github.com/statespace-tech/toolfront"
Documentation = "https://docs.toolfront.ai"
"Bug Tracker" = "https://github.com/statespace-tech/toolfront/issues"
[project.optional-dependencies]
test = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
]
dev = [
"pre-commit>=3.0.0",
"ruff>=0.1.0",
"mkdocs-material[imaging]>=9.6.16",
"mkdocstrings[python]>=0.30.0",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pytest-asyncio>=0.26.0",
"ruff>=0.11.13",
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = [
"E4", # Import errors
"E7", # Statement errors
"E9", # Runtime errors
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T20", # flake8-print
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
]
ignore = [
"T201", # Allow print statements
"N806", # Allow non-lowercase variable names in functions (for pandas)
"A003", # Allow builtin attribute shadowing (common with 'type', 'id', etc.)
"N805", # Allow non-self first arg in class methods (for Pydantic validators)
"N818", # Allow exception names without Error suffix
"B008", # Allow function calls in argument defaults (common in FastAPI/Pydantic)
"B904", # Allow exception raises without explicit chaining (for now)
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"asyncio: mark test as an async test",
]