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
This happens because if-else-block-instead-of-if-exp (SIM108) autofixes before if-else-block-instead-of-dict-get (SIM401), and SIM401 does not flag violations in ternary operations.
The text was updated successfully, but these errors were encountered:
Expected behaviour
ruff check --fix --select SIM .
should autofixto this:
Actual behaviour
ruff check --fix --select SIM .
autofixes the above code toThis happens because
if-else-block-instead-of-if-exp
(SIM108
) autofixes beforeif-else-block-instead-of-dict-get
(SIM401
), andSIM401
does not flag violations in ternary operations.The text was updated successfully, but these errors were encountered: