Skip to content

Commit cb764f5

Browse files
GeneAIclaude
authored andcommitted
chore: Add B904 to ruff ignore list
The B904 rule (raise exceptions with from err) is too verbose for the HTTPException pattern used in FastAPI handlers. The exception chaining doesn't provide meaningful benefit in this context since HTTPException already captures the error details. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a6a2ded commit cb764f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ select = [
228228
ignore = [
229229
"E501", # line too long (handled by black)
230230
"B008", # do not perform function calls in argument defaults
231+
"B904", # raise exceptions with from err (too verbose for HTTPException pattern)
231232
"C901", # too complex
232233
]
233234

0 commit comments

Comments
 (0)