mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-24 07:38:14 +00:00
fix: add type annotations and exclude tests from mypy
- Add type: ignore for mem0 import - Fix tool_usage.py cache_function None check - Change _execute_without_timeout return type to Any - Add type annotations to multiple functions: - add_sources() -> None - log() with proper parameter types - stop_rpm_counter() -> None - EventListener.__new__() -> Self - setup_listeners() -> None - Memory class __init__ methods -> None - TaskEvaluator.__init__() -> None - get_skipped_task_output() -> TaskOutput - Exclude tests directory from mypy checks in pyproject.toml - Update deprecated typing imports to use built-in types
This commit is contained in:
@@ -123,7 +123,7 @@ select = [
|
||||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
exclude = ["src/crewai/cli/templates"]
|
||||
exclude = ["src/crewai/cli/templates", "tests"]
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ["src/crewai/cli/templates"]
|
||||
|
||||
Reference in New Issue
Block a user