Skip to content

Develop#48

Merged
Jamalludeen merged 5 commits into
mainfrom
develop
Jun 7, 2026
Merged

Develop#48
Jamalludeen merged 5 commits into
mainfrom
develop

Conversation

@Jamalludeen

Copy link
Copy Markdown
Owner

No description provided.

@Jamalludeen Jamalludeen self-assigned this Jun 7, 2026
Copilot AI review requested due to automatic review settings June 7, 2026 15:41

@Jamalludeen Jamalludeen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Issue #47 is covered.

Copilot AI left a 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.

Pull request overview

This PR makes small usability and maintainability updates across the port scanner app and its tooling, including test coverage for package exports and minor refactors to argument parsing and GUI clipboard handling.

Changes:

  • Extend the test runner CLI parsing to support --pattern <value> in addition to --pattern=<value>.
  • Refactor/centralize a couple of constants and helpers (scanner connect timeout constant; GUI clipboard helper usage).
  • Strengthen package export tests by asserting the expected APP_NAME value.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_package.py Adds an explicit assertion for the exported APP_NAME constant.
run_tests.py Updates argv parsing to handle --pattern <value>.
portscanner/scanner.py Introduces a module-level default connect timeout constant and uses it as the default parameter.
portscanner/gui.py Uses the shared copy_to_clipboard helper for copying the license text.
main.py Refactors parser usage so --version parsing occurs before GUI initialization (clarifies intent).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread run_tests.py
Comment on lines +21 to +22
elif arg == "--pattern":
pattern = next(argv_iter, None)

@Jamalludeen Jamalludeen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Changes are safe and confirmed.

@Jamalludeen Jamalludeen merged commit 353bc87 into main Jun 7, 2026
1 of 9 checks passed
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.

2 participants