-
Notifications
You must be signed in to change notification settings - Fork 0
E2E Test: PR with Python Code #62
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 |
|---|---|---|
| @@ -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 | ||
|
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. 🔥 This variable is defined but never used! In production code, this would trigger linting errors. Either use this variable or remove it completely. Also, inline comments should have two spaces before them, according to PEP 8. ✨ |
||
| message = f"Hello, {name}!" | ||
| print(message) | ||
| return message | ||
|
|
||
| def main(): | ||
| # Example usage | ||
| greet("E2E Test") | ||
|
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. 💡 Consider capturing the return value here since |
||
| if os.path.exists(".env"): | ||
|
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.
|
||
| print(".env file found.") | ||
|
|
||
| if __name__ == "__main__": | ||
| main() | ||
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.
Good practice to have standard library imports first. If you add any third-party dependencies later, make sure to keep them separated with a blank line after standard library imports. 🛰️