Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utils/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def is_snake_case(name_of_var: str) -> bool:
Returns:
True if name is valid snake_case
"""
# Allow single letters, constants (ALL_CAPS), and private names
if len(name_of_var) == 1 or name_of_var.isupper() or name_of_var.startswith('_'):
# Allow single letters, constants (ALL_CAPS), private names, and visit_ functions
if len(name_of_var) == 1 or name_of_var.isupper() or name_of_var.startswith('_') or name_of_var.startswith('visit_'):
return True

# Standard snake_case pattern
Expand Down