[ruff] Reduce FastAPI false positives in unused-async (RUF029)#12938
[ruff] Reduce FastAPI false positives in unused-async (RUF029)#12938AlexWaygood merged 5 commits intoastral-sh:mainfrom
ruff] Reduce FastAPI false positives in unused-async (RUF029)#12938Conversation
CodSpeed Performance ReportMerging #12938 will not alter performanceComparing Summary
|
|
Thanks for the PR!
Sorry, I think I might have been confusing when I mentioned configuration options in #12925 (comment). I don't think we need a configuration option here specifically regarding whether fastAPI routes should be ignored by this rule or not; that seems way too specific. I would just ignore fastAPI routes unconditionally in this rule, without adding a new configuration option. |
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| RUF029 | 68 | 0 | 68 | 0 | 0 |
| A004 | 2 | 0 | 2 | 0 | 0 |
MichaReiser
left a comment
There was a problem hiding this comment.
Sorry for the confusion about the option. Let's remove it.
1d3d8d5 to
d52206a
Compare
crates/ruff_linter/resources/test/fixtures/ruff/RUF029_fastapi.py
Outdated
Show resolved
Hide resolved
d52206a to
047d6bf
Compare
047d6bf to
dab4e12
Compare
ruff] Reduce FastAPI false positives in unused-async (RUF029)
review comments were addressed
Summary
Fixes #12925.