mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 08:12:39 +00:00
feat: merge latest changes from crewAI main into packages/crewai
- 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
This commit is contained in:
@@ -71,6 +71,49 @@ qdrant = [
|
||||
[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 = [
|
||||
|
||||
Reference in New Issue
Block a user