Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 633d42c

Browse files
Archmongerrmorshea
authored andcommitted
revert is_hook_function_name
1 parent 2df0669 commit 633d42c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

flake8_idom_hooks/utils.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,4 @@ def is_component_def(node: ast.FunctionDef) -> bool:
3535

3636

3737
def is_hook_function_name(name: str) -> bool:
38-
return name.lstrip("_") in {
39-
"use_state",
40-
"use_effect",
41-
"use_memo",
42-
"use_reducer",
43-
"use_callback",
44-
"use_ref",
45-
}
38+
return name.lstrip("_").startswith("use_")

0 commit comments

Comments
 (0)