mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Update ruff configuration to ignore additional linting rules
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -17,8 +17,6 @@ ignore = [
|
||||
"ANN001", # Missing type annotation for function argument
|
||||
"ANN002", # Missing type annotation for *args
|
||||
"ANN003", # Missing type annotation for **kwargs
|
||||
"ANN101", # Missing type annotation for self in method
|
||||
"ANN102", # Missing type annotation for cls in classmethod
|
||||
"ANN201", # Missing return type annotation for public function
|
||||
"ANN202", # Missing return type annotation for private function
|
||||
"ANN204", # Missing return type annotation for special method
|
||||
@@ -26,6 +24,9 @@ ignore = [
|
||||
"ANN206", # Missing return type annotation for classmethod
|
||||
"E501", # Line too long
|
||||
"PT011", # pytest.raises() without match parameter
|
||||
"PT012", # pytest.raises() block should contain a single simple statement
|
||||
"SIM117", # Use a single `with` statement with multiple contexts
|
||||
"PLR2004", # Magic value used in comparison
|
||||
]
|
||||
|
||||
[lint.per-file-ignores]
|
||||
@@ -34,6 +35,9 @@ ignore = [
|
||||
"SLF001", # Allow private member access in tests
|
||||
"DTZ001", # Allow datetime without tzinfo in tests
|
||||
"PTH107", # Allow os.remove instead of Path.unlink in tests
|
||||
"PT012", # Allow multiple statements in pytest.raises() block in tests
|
||||
"SIM117", # Allow nested with statements in tests
|
||||
"PLR2004", # Allow magic values in tests
|
||||
]
|
||||
|
||||
[lint.isort]
|
||||
|
||||
Reference in New Issue
Block a user