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
When run Ruff in normal mode, return no error. But when run into preview mode, Ruff sudendly raise unused variable error because the dummy syntax is not used for the unpacking tuple, even if your use the explicit-preview-rules settings on true.
Except I don't want use dummy syntax. After having explored different options, settings and rules, I haven't found any solution that doesn't create more problems, and I'm obliged to ignore the rule 'F841' from the entire project (which is far from great, but clearly the lesser evil).
Excepted behavior:
Run Ruff in preview mode with explicit-preview-rules settings on true, the output should be identical to Ruff into normal mode.
Suggestion:
Create a specific (preview) rule to control and raise error if a unused variable should use dummy syntax instead.
This will make it possible to finely control Ruff's behavior, while preserving consistency output between normal and preview mode.
The text was updated successfully, but these errors were encountered:
It's currently not possible to only opt-in to preview behavior of some rules but not of others because it would require an explicit syntax in the configuration.
Splitting this rule has already been proposed in another issue. I'll merge the two
For this code:
When run Ruff in normal mode, return no error. But when run into preview mode, Ruff sudendly raise unused variable error because the dummy syntax is not used for the unpacking tuple, even if your use the
explicit-preview-rules
settings ontrue
.Except I don't want use dummy syntax. After having explored different options, settings and rules, I haven't found any solution that doesn't create more problems, and I'm obliged to ignore the rule 'F841' from the entire project (which is far from great, but clearly the lesser evil).
Excepted behavior:
Run Ruff in preview mode with
explicit-preview-rules
settings ontrue
, the output should be identical to Ruff into normal mode.Suggestion:
Create a specific (preview) rule to control and raise error if a unused variable should use dummy syntax instead.
This will make it possible to finely control Ruff's behavior, while preserving consistency output between normal and preview mode.
The text was updated successfully, but these errors were encountered: