Skip to content

Fixes and dep updates - #160

Open
Raymo111 wants to merge 5 commits into
masterfrom
stage
Open

Fixes and dep updates#160
Raymo111 wants to merge 5 commits into
masterfrom
stage

Conversation

@Raymo111

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 11, 2026 04:18
flake8 7.2.0 (pyflakes 3.3.2) flags nonlocal names that are only read and never
assigned in their scope. Drop the unused names from the declarations in
_update_timing and _prompt_for_upgrade.
stop_logging() only deleted the listener, which never unblocked the blocking
start() call, so the listener thread hung and prevented a clean exit. Call
listener.stop() (new in vinput 1.3.0) and join the listener thread before
freeing it.
Signal handlers are invoked with (signum, frame); the one-arg lambda raised
TypeError before ever calling stop_logging, so Ctrl-C never stopped the
listener. Accept and ignore both arguments.

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 updates the project’s Python dependencies and makes small runtime fixes to improve shutdown behavior and signal handling in the freqlog component.

Changes:

  • Bumped development/test dependencies (flake8/pytest/pytest-cov/pre-commit) and runtime dependencies (PyInstaller/PySide6/requests/vinput).
  • Adjusted packaging dependency for vinput in setup.cfg.
  • Improved freqlog shutdown by stopping the listener and joining its thread; fixed SIGINT handler signature in CLI entrypoint.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test-requirements.txt Updates test/dev tool versions.
setup.cfg Tightens/updates packaged dependency on vinput.
requirements.txt Updates runtime dependency versions (incl. vinput).
nexus/Freqlog/Freqlog.py Improves listener shutdown to avoid hanging threads.
nexus/main.py Fixes SIGINT handler signature to accept (signum, frame).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread setup.cfg
Comment on lines 61 to +63
install_requires =
setuptools
vinput
vinput>=1.3.0
Comment thread nexus/Freqlog/Freqlog.py
Comment on lines 392 to 403
self.killed = True
logging.warning("Stopping freqlog")
if self.listener:
# stop() unblocks the listener's blocking start() call so its thread can
# return; without it the listener thread would hang and prevent a clean
# shutdown. Wait for the thread to exit before freeing the listener.
self.listener.stop()
if self.listener_thread.is_alive():
self.listener_thread.join()
del self.listener
self.listener = None
self.is_logging = False
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