-
Notifications
You must be signed in to change notification settings - Fork 182
Standardize Stage Naming: Enforce snake_case with centralized conversion function #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: VibhuJawa <[email protected]>
… naming Co-authored-by: VibhuJawa <[email protected]>
Co-authored-by: VibhuJawa <[email protected]>
Co-authored-by: VibhuJawa <[email protected]>
@copilot , Please fix these ruff issues.
|
…ring exception Co-authored-by: VibhuJawa <[email protected]>
... Fixed all the ruff issues in commit eee822f:
All the specific error types mentioned are now resolved. |
/ok to test 14ca3d9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good to me, @ayushdg can you take at the test for me please
assert not (cache_path / "connected_components_stage").exists() | ||
assert not (cache_path / "buckets_to_edges_stage").exists() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayushdg , Can you check this test please
): | ||
# Set ProcessingStage attributes | ||
self._name = self.__class__.__name__ | ||
self._name = "min_hash_stage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._name = "min_hash_stage" | |
self._name = "minhash_stage" |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot , please address
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit 0274d6d. Changed the minhash stage name from "min_hash_stage" to "minhash_stage" as suggested.
Co-authored-by: VibhuJawa <[email protected]>
@copilot , please fix below ruff issues:
|
Co-authored-by: VibhuJawa <[email protected]>
/okay to test 41ccb36 |
@copilot , Please fix :
|
…and update test expectations Co-authored-by: VibhuJawa <[email protected]>
... Fixed the PreviewStage test failure in commit 25cb9d0. The issue was that PreviewStage wasn't setting its name properly during initialization. Updated it to use the centralized |
/okay to test d3e4dbd |
/ok to test 0cd716b |
_camel_to_snake
function tonemo_curator/stages/base.py
for consistent naming logicself._name = _camel_to_snake(self.__class__.__name__)
self._name
assignments from subclasses where automatic conversion produces the correct result:_camel_to_snake
function docstring (lines 51 and 54)_camel_to_snake
function in__post_init__
All stage naming standardization work is complete with proper validation, comprehensive testing, clean code that passes linting checks, and centralized naming function that eliminates duplication across the codebase.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.