Ignore some methods on list in flake8-boolean-trap (#4385)

This commit is contained in:
Charlie Marsh
2023-05-11 17:54:59 -04:00
committed by GitHub
parent 4fd4a65718
commit 97802e7466

View File

@@ -38,11 +38,13 @@ impl Violation for BooleanPositionalValueInFunctionCall {
}
const FUNC_CALL_NAME_ALLOWLIST: &[&str] = &[
"append",
"assertEqual",
"assertEquals",
"assertNotEqual",
"assertNotEquals",
"bytes",
"count",
"failIfEqual",
"failUnlessEqual",
"float",
@@ -53,9 +55,11 @@ const FUNC_CALL_NAME_ALLOWLIST: &[&str] = &[
"getfloat",
"getint",
"index",
"insert",
"int",
"param",
"pop",
"remove",
"setattr",
"setdefault",
"str",