Skip to content
Open
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
5 changes: 5 additions & 0 deletions agentevolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
__version__ = "0.1.0" # ⭐ Sets the version of the project


def get_version():

Choose a reason for hiding this comment

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

medium

To explicitly declare the public API of the agentevolver package, it's a good practice to define __all__ in the __init__.py file. This controls which symbols are imported when a user does from agentevolver import *. I suggest adding __all__ = ["get_version", "__version__"] before this function definition.

Suggested change
def get_version():
__all__ = ["get_version", "__version__"]
def get_version():

"""Return the AgentEvolver version."""
return __version__


from agentevolver.utils.vsdb import vscode_conditional_breakpoint as bp

Choose a reason for hiding this comment

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

medium

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 __version__ assignment.