-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcomelinterRelated to the linterRelated to the lintersuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa
Description
Rule RUF028 produces false positives for decorators:
https://play.ruff.rs/139a4202-caac-4f92-9662-671492adc377
import pytest
@pytest.mark.parametrize(
"test_input,expected",
[
("3+5", 8 ),
("17+2", 19),
],
) # fmt: skip
def test_eval(test_input, expected):
assert eval(test_input) == expectedThe # fmt: skip comment gets flagged as invalid, despite the fact that it does actually work (as one would expect).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcomelinterRelated to the linterRelated to the lintersuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa