mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-21 05:48:14 +00:00
fix: resolve lint and type checking issues
- Add per-file ignores for S101 (assert statements) in test files - Add per-file ignore for PERF203 (try-except in loop) in lite_agent.py - Replace assert with proper error handling in lite_agent.py - Replace eval() with ast.literal_eval() for security compliance Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -133,6 +133,10 @@ select = [
|
||||
]
|
||||
ignore = ["E501"] # ignore line too long
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/**/*.py" = ["S101"] # Allow assert statements in tests
|
||||
"src/crewai/lite_agent.py" = ["PERF203"] # Allow try-except in loop for LLM parsing
|
||||
|
||||
[tool.mypy]
|
||||
exclude = ["src/crewai/cli/templates", "tests"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user