Skip to content

🧹 Remove commented-out unused wait_for_port logic and imports#16

Open
JenR8ed wants to merge 1 commit intomainfrom
cleanup-dead-code-test-app-2730328015269295562
Open

🧹 Remove commented-out unused wait_for_port logic and imports#16
JenR8ed wants to merge 1 commit intomainfrom
cleanup-dead-code-test-app-2730328015269295562

Conversation

@JenR8ed
Copy link
Copy Markdown
Owner

@JenR8ed JenR8ed commented Apr 4, 2026

Removed commented-out code blocks (imports and wait_for_port function) from the beginning of tests/test_app.py. Verified that the script's syntax remains correct and that it still functions as expected.


PR created automatically by Jules for task 2730328015269295562 started by @JenR8ed

This commit removes the top-level commented-out import statements and
the `wait_for_port` function in `tests/test_app.py`. These blocks were
dead code and their removal improves the readability and maintainability
of the test script.

Active imports (asyncio, sys, os, playwright) and the inline
definition of `wait_for_port` within the `main()` function are preserved
to ensure the script continues to function correctly when the React
dev server needs to be started during testing.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request cleans up tests/test_app.py by removing unused, commented-out imports and functions. The review feedback recommends reordering the remaining imports to comply with PEP 8 standards, specifically by grouping standard library imports separately from third-party modules.

Comment thread tests/test_app.py
Comment on lines 1 to 4
import asyncio
from playwright.async_api import async_playwright
# import subprocess
# import time
# import socket
import sys
import os
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

According to the PEP 8 style guide, imports should be grouped in the following order:

  1. Standard library imports
  2. Related third-party imports
  3. Local application/library specific imports

For better readability and consistency, please reorder the imports and separate the groups with a blank line.

Suggested change
import asyncio
from playwright.async_api import async_playwright
# import subprocess
# import time
# import socket
import sys
import os
import asyncio
import os
import sys
from playwright.async_api import async_playwright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant