Wie kann Ruff verhindern, dass Ruff Argumente einer Funktion in separate Zeilen formatiert?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie kann Ruff verhindern, dass Ruff Argumente einer Funktion in separate Zeilen formatiert?

by Anonymous » 06 Apr 2025, 21:42

Ich habe eine Funktion wie SO: < /p>

Code: Select all

def get_foo(a: object, b: tuple, c: int,) -> dict:
.....
Wenn ich $ Ruff Format myfile.py mache, wird meine Funktion in
geändert

Code: Select all

def get_foo(
a: object,
b: tuple,
c: int,
) -> dict:
....
Wie stoppe ich dieses Verhalten?

Top