ruff/crates/ruff_linter
Charlie Marsh 461cdad53a
Avoid repeating function calls in f-string conversions (#10265)
## Summary

Given a format string like `"{x} {x}".format(x=foo())`, we should avoid
converting to an f-string, since doing so would require repeating the
function call (`f"{foo()} {foo()}"`), which could introduce side
effects.

Closes https://github.com/astral-sh/ruff/issues/10258.
2024-03-06 23:33:19 -05:00
..
resources Avoid repeating function calls in f-string conversions (#10265) 2024-03-06 23:33:19 -05:00
src Avoid repeating function calls in f-string conversions (#10265) 2024-03-06 23:33:19 -05:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.3.1 (#10252) 2024-03-06 19:59:04 +00:00