mirror of https://github.com/astral-sh/ruff
Allow boolean parameters for `pytest.param` (#4176)
This commit is contained in:
parent
a4ce746892
commit
56c45013c2
|
|
@ -42,22 +42,23 @@ const FUNC_CALL_NAME_ALLOWLIST: &[&str] = &[
|
||||||
"assertEquals",
|
"assertEquals",
|
||||||
"assertNotEqual",
|
"assertNotEqual",
|
||||||
"assertNotEquals",
|
"assertNotEquals",
|
||||||
|
"bytes",
|
||||||
"failIfEqual",
|
"failIfEqual",
|
||||||
"failUnlessEqual",
|
"failUnlessEqual",
|
||||||
|
"float",
|
||||||
"fromkeys",
|
"fromkeys",
|
||||||
"get",
|
"get",
|
||||||
"getattr",
|
"getattr",
|
||||||
|
"getboolean",
|
||||||
|
"getfloat",
|
||||||
|
"getint",
|
||||||
"index",
|
"index",
|
||||||
|
"int",
|
||||||
|
"param",
|
||||||
"pop",
|
"pop",
|
||||||
"setattr",
|
"setattr",
|
||||||
"setdefault",
|
"setdefault",
|
||||||
"str",
|
"str",
|
||||||
"bytes",
|
|
||||||
"int",
|
|
||||||
"float",
|
|
||||||
"getint",
|
|
||||||
"getfloat",
|
|
||||||
"getboolean",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"];
|
const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue