Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

chore: expand ruff rules with comprehensive linting (#3453)

Greyson LaLonde30b9cdd9448f
diff --git a/pyproject.toml b/pyproject.toml
index c482efec7..8a23d6c76 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -106,19 +106,30 @@ fix = true
[tool.ruff.lint]
select = [
- "B006",
- "UP006",
- "UP007",
- "UP035",
- "UP037",
- "UP004",
- "UP008",
- "UP010",
- "UP018",
- "UP031",
- "UP032",
- "I001",
- "I002",
+ "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
]
[tool.mypy]