[ruff] Implement `incorrectly-parenthesized-tuple-in-subscript` (`RUF031`) #12480
dylwil3
marked this pull request as draft 1 year ago
dylwil3
marked this pull request as ready for review 1 year ago
dylwil3
marked this pull request as draft 1 year ago
dylwil3
marked this pull request as ready for review 1 year ago
dylwil3
changed the title [ruff] Implement `parentheses-in-tuple-slices` (`RUF031`) [ruff] Implement `bad-format-tuple-in-getitem` (`RUF031`) 1 year ago
dylwil3
changed the title [ruff] Implement `bad-format-tuple-in-getitem` (`RUF031`) [ruff] Implement `incorrectly-parenthesized-tuple-in-getitem` (`RUF031`) 1 year ago
dylwil3
changed the title [ruff] Implement `incorrectly-parenthesized-tuple-in-getitem` (`RUF031`) [ruff] Implement `incorrectly-parenthesized-tuple-in-subscript` (`RUF031`) 1 year ago
add test fixture for lint rule
8acd4095
add test cases with newlines
e9aa21cf
add module to check for parens around tuples in getitem calls
d59408f7
add to codes as RUF031
7882fcd9
add pointer to test case for rule
be86fe95
implement rule for subscript expressions in checker
55c334af
update schema
ec086e8a
add snapshot for RUF031
284a1946
reformat example
9513c9c1
begin adding settings functionality to ruff ruleset
5b0a92a0
rename rule and add config for ruff
61106a6e
update rule fix and violation logic to respect configuration
f3db34e8
update snapshot
3f5d5bba
update schema
a0e7b04c
fix ruff settings namespace copypasta mistake and regenerate snapshot
0c339ab6
add test case with parens on setting
c2e350bc
make ruff an option group
5e1e0a4c
rename rule to satisfy convention
a6969617
change rule and config option names
209add0d
typo
bf5947d7
Use `let .. else`
2a895b60
resolve comments
dedda82f
update snapshot
d8ea3a20
treat single element tuples as well
f7ff6a35
update snapshot
dd3d881e
clippy
cec2241b
typo and subscript instead of getitem
96fcb284
update snapshot again
bbe18013
change name of setting
5a83811f
update schema
4cc9eb54
update docstrings
767ae993
AlexWaygood
force pushed
from
858bf05b
to
767ae993
1 year ago
rename module and remove clippy allow
b95f0689
match to if/else
84afc6e7
Apply suggestions from code review
ccf47a7a
AlexWaygood
force pushed
from
ba508228
to
e165fa5c
1 year ago
final nits
4ba055dd
AlexWaygood
force pushed
from
e165fa5c
to
4ba055dd
1 year ago
dylwil3
deleted the getitem-with-parens-tuple branch 1 year ago
Assignees
No one assigned
Labels
rule
accepted
preview
Login to write a write a comment.
Login via GitHub