Skip to content
Merged

Stg #41

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_'):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@47thomasj in the future, add a .standardignore file to TreeTapper repo (or whatever repo you are working on). There are simply to many cases where we inherit from a class that doesn't follow our naming standards. We don't need to update the check every time- that's too much work. Instead, just use the .standardignore file to indicate what variable names (or entire files) should be passed over when doing the check.

return True

# Standard snake_case pattern
Expand Down
Loading