-
Notifications
You must be signed in to change notification settings - Fork 147
feat: add get_version() helper #40
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,9 @@ | |
| __version__ = "0.1.0" # ⭐ Sets the version of the project | ||
|
|
||
|
|
||
| def get_version(): | ||
| """Return the AgentEvolver version.""" | ||
| return __version__ | ||
|
|
||
|
|
||
| from agentevolver.utils.vsdb import vscode_conditional_breakpoint as bp | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to PEP 8, imports should be placed at the top of the file, after any module comments and docstrings, and before module globals and constants. Placing imports after function definitions can lead to confusion and potential circular import issues. Please move this import to the top of the file, before the |
||
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.
To explicitly declare the public API of the
agentevolverpackage, it's a good practice to define__all__in the__init__.pyfile. This controls which symbols are imported when a user doesfrom agentevolver import *. I suggest adding__all__ = ["get_version", "__version__"]before this function definition.