aboutsummaryrefslogtreecommitdiff
path: root/test/lint
diff options
context:
space:
mode:
authorTyler Chambers <tyler@iheartapis.com>2020-11-08 16:35:13 -0500
committerTyler Chambers <tyler@iheartapis.com>2020-11-09 10:21:51 -0500
commitb6121edf70a8d50fd16ddbba0c3168e5e49bfc2e (patch)
tree512a3d3a835be826adff9f42f4f4852033d8eef8 /test/lint
parent7e373294a5ae819099c39d9d03d1f5a311d63cfc (diff)
swapped "is" for "==" in literal comparison
update lint-python.sh to include check F632
Diffstat (limited to 'test/lint')
-rwxr-xr-xtest/lint/lint-python.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lint/lint-python.sh b/test/lint/lint-python.sh
index 72e8ef7c7d..4fc130497b 100755
--- a/test/lint/lint-python.sh
+++ b/test/lint/lint-python.sh
@@ -55,6 +55,7 @@ enabled=(
F621 # too many expressions in an assignment with star-unpacking
F622 # two or more starred expressions in an assignment (a, *b, *c = d)
F631 # assertion test is a tuple, which are always True
+ F632 # use ==/!= to compare str, bytes, and int literals
F701 # a break statement outside of a while or for loop
F702 # a continue statement outside of a while or for loop
F703 # a continue statement in a finally block in a loop