Ruff VSCode extension(v2024.10.0) adds a blank line at the end when formatting cell
Fresh-Mint opened this issue · comments
Paul Z commented
Ruff VSCode extension(v2024.10.0) adds a blank line at the end when formatting cell
REPRODUCTION
Configure RUFF as formatter.
Create a jupyter notebook with a cell with a = 1.
From the context menu for the cell, select Format cell.
Julian commented
I personally had this "bug" appear over the last x versions already but it is hard to reproduce for me.
It happens quite frequently but a vscode restart always fixes it 😄
Dhruv Manilawala commented
Hi, thanks for the report. Unfortunately, I cannot reproduce this with the steps you've provided. Can you provide some more details?
- Ruff version
- VS Code settings for Ruff and Python
- Any Ruff configuration used (
pyproject.toml
,ruff.toml
?)
Screen.Recording.2024-02-18.at.11.29.47.mov
(Transferring this issue to the ruff-vscode
repository.)