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
19 changes: 19 additions & 0 deletions e2e_test_script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

import os

def greet(name="World"):
"""Greets the user."""
# A simple function with an unused variable to trigger a line comment
unused_var = 123 # This should trigger a line comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ The variable unused_var = 123 is declared but never used. This creates unnecessary memory allocation and can be confusing to other developers. Consider removing it if not needed, or use it somewhere in the function. If it was intentionally added for demonstration purposes (as the comment suggests), you might want to add a # noqa comment to suppress linting warnings. 🧹

message = f"Hello, {name}!"
print(message)
return message

def main():
# Example usage
greet("E2E Test")
if os.path.exists(".env"):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 You're checking if a .env file exists, but not actually loading any environment variables from it. If this is intended for actual E2E testing, consider using a package like python-dotenv to load variables from this file. Example: from dotenv import load_dotenv; load_dotenv()

print(".env file found.")

if __name__ == "__main__":
main()