You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code seems to be unformattable by ruff with Rule PIE804
def test_function(*args, **kwargs):
pass
test_function(
arg1=1016,
arg2=25.4,
**{},
)
The error is: error: Fix introduced a syntax error. Reverting all changes.
I could break it down to this setting: ruff check testfile.py --select=PIE804 --fix
version is ruff 0.1.7
It's quite obvious, that ruff fails to unpack the empty dict into keyword-arguments, but when reformatting an old codebase it would be nice, if this (admittedly quite sketchy piece of code) would not crash the fix for the complete file.
The text was updated successfully, but these errors were encountered:
Hi all,
The following code seems to be unformattable by ruff with Rule PIE804
The error is:
error: Fix introduced a syntax error. Reverting all changes.
I could break it down to this setting:
ruff check testfile.py --select=PIE804 --fix
version is ruff 0.1.7
It's quite obvious, that ruff fails to unpack the empty dict into keyword-arguments, but when reformatting an old codebase it would be nice, if this (admittedly quite sketchy piece of code) would not crash the fix for the complete file.
The text was updated successfully, but these errors were encountered: