You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for not listing the actual rule.
I tried all the flags in ruff format --help but never got an output that explains which rule is making the change.
I can update the title if pointed to which is doing it. Also is there a command I missed that outputs this? --show-fixes seems to be only a linter flag.
There's no specific rule that performs this change. Instead, the formatter normalizes the scientific notation to consistently use the lowercase `e. So, there's no rule that you need to enable or disable.
However, your observation is correct. The formatter doesn't format expressions inside f-strings yet (similar to black). @dhruvmanila started working on formatting expressions inside of f-strings, which should give you the desired behavior (including splitting expressions to make the f-string fit if possible).
claydugo
changed the title
Scientific Notation formatter misses f-strings
Scientific notation formatter misses f-strings
Dec 11, 2023
Sorry for not listing the actual rule.
I tried all the flags in
ruff format --help
but never got an output that explains which rule is making the change.I can update the title if pointed to which is doing it. Also is there a command I missed that outputs this?
--show-fixes
seems to be only a linter flag.Reproduce:
Output of
ruff format --diff
The text was updated successfully, but these errors were encountered: