Update ruff configuration to ignore additional Path and docstring rules

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-12 13:44:20 +00:00
parent 39c4ed33bb
commit f6cdfc1099

View File

@@ -14,6 +14,7 @@ ignore = [
"D105", # Missing docstring in magic method "D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class "D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__ "D107", # Missing docstring in __init__
"D205", # 1 blank line required between summary line and description
"ANN001", # Missing type annotation for function argument "ANN001", # Missing type annotation for function argument
"ANN002", # Missing type annotation for *args "ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs "ANN003", # Missing type annotation for **kwargs
@@ -27,6 +28,7 @@ ignore = [
"PT012", # pytest.raises() block should contain a single simple statement "PT012", # pytest.raises() block should contain a single simple statement
"SIM117", # Use a single `with` statement with multiple contexts "SIM117", # Use a single `with` statement with multiple contexts
"PLR2004", # Magic value used in comparison "PLR2004", # Magic value used in comparison
"B017", # Do not assert blind exception
] ]
[lint.per-file-ignores] [lint.per-file-ignores]
@@ -35,9 +37,14 @@ ignore = [
"SLF001", # Allow private member access in tests "SLF001", # Allow private member access in tests
"DTZ001", # Allow datetime without tzinfo in tests "DTZ001", # Allow datetime without tzinfo in tests
"PTH107", # Allow os.remove instead of Path.unlink in tests "PTH107", # Allow os.remove instead of Path.unlink in tests
"PTH118", # Allow os.path.join() in tests
"PTH120", # Allow os.path.dirname() in tests
"PTH123", # Allow open() instead of Path.open() in tests
"PTH202", # Allow os.path.getsize in tests
"PT012", # Allow multiple statements in pytest.raises() block in tests "PT012", # Allow multiple statements in pytest.raises() block in tests
"SIM117", # Allow nested with statements in tests "SIM117", # Allow nested with statements in tests
"PLR2004", # Allow magic values in tests "PLR2004", # Allow magic values in tests
"B017", # Allow asserting blind exceptions in tests
] ]
[lint.isort] [lint.isort]