astral-sh/ruff

Ruff extension does not respect lines-after-imports from ruff.toml

開放

#17,558 建立於 2025年4月15日

 (6 則留言) (0 個反應) (0 位負責人)Rust (2,088 個分叉)batch import
documentationformatterhelp wantedincompatibilityisort

倉庫指標

星標
 (47,527 顆星)
PR 合併指標
 (平均合併 3天 8小時) (30 天內合併 573 個 PR)

描述

For a ruff.toml file at the root of my repo:

line-length = 120
target-version = "py311"
[lint.isort]
lines-after-imports = 1

... it appears that the setting to use a single line after the imports is ignored by the extension, resulting in the file that is formatted on save having errors according to the command line tool

I am fairly sure the file is being loaded because I am able to change the line-length parameter, restart the extension, and see matching fixes being applied.

貢獻者指南