lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3771775.lGaqSPkdTl@hyperion>
Date: Sun, 05 Oct 2025 23:31:03 +0200
From: Maarten ter Huurne <maarten@...ewalker.org>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
 Linus Torvalds <torvalds@...ux-foundation.org>,
 John Hubbard <jhubbard@...dia.com>
Cc: Dave Airlie <airlied@...il.com>, Miguel Ojeda <ojeda@...nel.org>,
 Sima Vetter <sima@...ll.ch>, dri-devel <dri-devel@...ts.freedesktop.org>,
 LKML <linux-kernel@...r.kernel.org>
Subject: Re: [git pull] drm for 6.18-rc1

On Saturday 4 October 2025 03:53:34 CEST John Hubbard wrote:

> The main complaint with rustfmt is that it is extremely twitchy and
> unstable with respect to one-line, vs. multi-line output.
> 
> *Especially* with "use" statements.

The Black and Ruff formatting tools for Python use a "magic comma" rule 
that works well in practice: if the last item has a trailing comma, the 
items are guaranteed to be formatted multi-line, while if there is no 
trailing comma, single-line formatting is attempted.

I couldn't find documentation of the feature itself, but there is a 
settings flag to turn it off that contains an example:

https://docs.astral.sh/ruff/settings/#format_skip-magic-trailing-comma

Bye,
		Maarten




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ