ruff
66885e4b - [`flake8-logging-format`] Avoid dropping implicitly concatenated pieces in the `G004` fix (#20793)

Commit
195 days ago
[`flake8-logging-format`] Avoid dropping implicitly concatenated pieces in the `G004` fix (#20793) ## Summary The original autofix for G004 was quietly dropping everything but the f-string components of any implicit concatenation sequence; this addresses that. Side note: It looks like `f_strings` is a bit risky to use (since it implicitly skips non-f-string parts); use iter and include implicitly concatenated pieces. We should consider if it's worth having (convenience vs. bit risky). ## Test Plan ``` cargo test -p ruff_linter ``` Backtest (run new testcases against previous implementation): ``` git checkout HEAD^ crates/ruff_linter/src/rules/flake8_logging_format/rules/logging_call.rs cargot test -p ruff_linter ```
Author
Parents
Loading