Skip to content

Commit

Permalink
Allow boolean parameters for pytest.param (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored May 2, 2023
1 parent a4ce746 commit 56c4501
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions crates/ruff/src/rules/flake8_boolean_trap/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,23 @@ const FUNC_CALL_NAME_ALLOWLIST: &[&str] = &[
"assertEquals",
"assertNotEqual",
"assertNotEquals",
"bytes",
"failIfEqual",
"failUnlessEqual",
"float",
"fromkeys",
"get",
"getattr",
"getboolean",
"getfloat",
"getint",
"index",
"int",
"param",
"pop",
"setattr",
"setdefault",
"str",
"bytes",
"int",
"float",
"getint",
"getfloat",
"getboolean",
];

const FUNC_DEF_NAME_ALLOWLIST: &[&str] = &["__setitem__"];
Expand Down

0 comments on commit 56c4501

Please sign in to comment.