Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a0e192
commit 8b07f95
Showing
12 changed files
with
287 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if a and not a: | ||
pass | ||
|
||
if (a and not a) and b: | ||
pass | ||
|
||
if (a and not a) or b: | ||
pass | ||
|
||
if a: | ||
pass | ||
|
||
if not a: | ||
pass | ||
|
||
if a and not b: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
if a or not a: | ||
pass | ||
|
||
if (a or not a) or b: | ||
pass | ||
|
||
if (a or not a) and b: | ||
pass | ||
|
||
if a: | ||
pass | ||
|
||
if not a: | ||
pass | ||
|
||
if a or not b: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -899,6 +899,8 @@ | |
"SIM118", | ||
"SIM2", | ||
"SIM22", | ||
"SIM220", | ||
"SIM221", | ||
"SIM222", | ||
"SIM223", | ||
"SIM3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/flake8_simplify/snapshots/ruff__flake8_simplify__tests__SIM220_SIM220.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
source: src/flake8_simplify/mod.rs | ||
expression: checks | ||
--- | ||
- kind: | ||
AAndNotA: a | ||
location: | ||
row: 1 | ||
column: 3 | ||
end_location: | ||
row: 1 | ||
column: 14 | ||
fix: | ||
content: "False" | ||
location: | ||
row: 1 | ||
column: 3 | ||
end_location: | ||
row: 1 | ||
column: 14 | ||
parent: ~ | ||
- kind: | ||
AAndNotA: a | ||
location: | ||
row: 4 | ||
column: 4 | ||
end_location: | ||
row: 4 | ||
column: 15 | ||
fix: | ||
content: "False" | ||
location: | ||
row: 4 | ||
column: 4 | ||
end_location: | ||
row: 4 | ||
column: 15 | ||
parent: ~ | ||
- kind: | ||
AAndNotA: a | ||
location: | ||
row: 7 | ||
column: 4 | ||
end_location: | ||
row: 7 | ||
column: 15 | ||
fix: | ||
content: "False" | ||
location: | ||
row: 7 | ||
column: 4 | ||
end_location: | ||
row: 7 | ||
column: 15 | ||
parent: ~ | ||
|
35 changes: 35 additions & 0 deletions
35
src/flake8_simplify/snapshots/ruff__flake8_simplify__tests__SIM221_SIM221.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
source: src/flake8_simplify/mod.rs | ||
expression: checks | ||
--- | ||
- kind: | ||
AOrNotA: a | ||
location: | ||
row: 1 | ||
column: 3 | ||
end_location: | ||
row: 1 | ||
column: 13 | ||
fix: ~ | ||
parent: ~ | ||
- kind: | ||
AOrNotA: a | ||
location: | ||
row: 4 | ||
column: 4 | ||
end_location: | ||
row: 4 | ||
column: 14 | ||
fix: ~ | ||
parent: ~ | ||
- kind: | ||
AOrNotA: a | ||
location: | ||
row: 7 | ||
column: 4 | ||
end_location: | ||
row: 7 | ||
column: 14 | ||
fix: ~ | ||
parent: ~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.