astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruff VSCode extension(v2024.10.0) adds a blank line at the end when formatting cell

Fresh-Mint opened this issue · comments

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.

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 😄

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.)