mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
- Merged upstream changes from crewAI main branch - Resolved conflicts in pyproject.toml - Fixed mypy import issue in qdrant factory - Updated pre-commit mypy configuration for monorepo structure
132 lines
3.4 KiB
TOML
132 lines
3.4 KiB
TOML
[project]
|
|
name = "crewai-core"
|
|
dynamic = ["version"]
|
|
description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10,<3.14"
|
|
authors = [
|
|
{ name = "Joao Moura", email = "joao@crewai.com" }
|
|
]
|
|
dependencies = [
|
|
# Core Dependencies
|
|
"pydantic>=2.6.1",
|
|
"openai>=1.13.3",
|
|
"litellm==1.74.9",
|
|
"instructor>=1.3.3",
|
|
# Text Processing
|
|
"pdfplumber>=0.11.4",
|
|
"regex>=2024.9.11",
|
|
# Telemetry and Monitoring
|
|
"opentelemetry-api>=1.30.0",
|
|
"opentelemetry-sdk>=1.30.0",
|
|
"opentelemetry-exporter-otlp-proto-http>=1.30.0",
|
|
# Data Handling
|
|
"chromadb>=0.5.23",
|
|
"tokenizers>=0.20.3",
|
|
"onnxruntime==1.22.0",
|
|
"openpyxl>=3.1.5",
|
|
"pyvis>=0.3.2",
|
|
# Authentication and Security
|
|
"python-dotenv>=1.0.0",
|
|
"pyjwt>=2.9.0",
|
|
# Configuration and Utils
|
|
"click>=8.1.8",
|
|
"appdirs>=1.4.4",
|
|
"jsonref>=1.1.0",
|
|
"json-repair==0.25.2",
|
|
"uv>=0.4.25",
|
|
"tomli-w>=1.1.0",
|
|
"tomli>=2.0.2",
|
|
"blinker>=1.9.0",
|
|
"json5>=0.10.0",
|
|
"portalocker==2.7.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
tools = ["crewai-tools"]
|
|
embeddings = [
|
|
"tiktoken~=0.8.0"
|
|
]
|
|
pdfplumber = [
|
|
"pdfplumber>=0.11.4",
|
|
]
|
|
pandas = [
|
|
"pandas>=2.2.3",
|
|
]
|
|
openpyxl = [
|
|
"openpyxl>=3.1.5",
|
|
]
|
|
mem0 = ["mem0ai>=0.1.94"]
|
|
docling = [
|
|
"docling>=2.12.0",
|
|
]
|
|
aisuite = [
|
|
"aisuite>=0.1.10",
|
|
]
|
|
qdrant = [
|
|
"qdrant-client[fastembed]>=1.14.3",
|
|
]
|
|
|
|
|
|
[project.scripts]
|
|
crewai = "crewai.cli.cli:crewai"
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
"src/crewai/cli/templates",
|
|
]
|
|
fix = true
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors (style issues)
|
|
"F", # Pyflakes (code errors)
|
|
"B", # flake8-bugbear (bug prevention)
|
|
"S", # bandit (security issues)
|
|
"RUF", # ruff-specific rules
|
|
"N", # pep8-naming (naming conventions)
|
|
"W", # pycodestyle warnings
|
|
"PERF", # performance issues
|
|
"PIE", # flake8-pie (unnecessary code)
|
|
"ASYNC", # async/await best practices
|
|
"RET", # flake8-return (return improvements)
|
|
"UP006", # use collections.abc
|
|
"UP007", # use X | Y for unions
|
|
"UP035", # use dict/list instead of typing.Dict/List
|
|
"UP037", # remove quotes from type annotations
|
|
"UP045", # use X | None instead of Optional[X]
|
|
"UP004", # use isinstance instead of type
|
|
"UP008", # use super() instead of super(Class, self)
|
|
"UP010", # use isinstance for type checks
|
|
"UP018", # use str() instead of "string"
|
|
"UP031", # use f-strings for .format()
|
|
"UP032", # use f-strings for .format() with positional
|
|
"I001", # sort imports
|
|
"I002", # remove unused imports
|
|
]
|
|
ignore = ["E501"] # ignore line too long globally
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/**/*.py" = ["S101", "RET504"] # Allow assert statements and unnecessary assignments before return in tests
|
|
|
|
[tool.mypy]
|
|
exclude = ["src/crewai/cli/templates", "tests/"]
|
|
|
|
[tool.bandit]
|
|
exclude_dirs = ["src/crewai/cli/templates"]
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
markers = [
|
|
"telemetry: mark test as a telemetry test (don't mock telemetry)",
|
|
]
|
|
|
|
[tool.hatch.version]
|
|
path = "src/crewai/__init__.py"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/crewai"]
|