Add @-commands to tools/query.py, rewrite TODO.md, pytest config improvement - #70
Merged
Conversation
gvanrossum-ms
requested review from
Copilot and
Guido van Rossum (gvanrossum)
November 6, 2025 02:10
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds interactive @-command support to the query tool (tools/query.py), enabling users to dynamically control debug settings, run partial pipeline stages, view statistics, and access help documentation. The changes also include test configuration updates to use pytest's standard test discovery mechanism.
- Adds four @-commands:
@help,@debug,@stage, and@statswith argument parsing and error handling - Implements command routing in the interactive loop to detect and handle lines starting with
@ - Updates test configuration to use pytest's
testpathssetting for more consistent test discovery
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/query.py | Adds shlex import, implements @-command infrastructure including command handlers, argument parsing, and interactive loop integration |
| test/test_mcp_server.py | Updates test query from "Who is the host of this podcast?" to "Who is Kevin Scott?" |
| pyproject.toml | Adds testpaths = ["test"] configuration for pytest test discovery |
| make.bat | Removes explicit test directory argument from pytest command (relies on testpaths config) |
| TODO.md | Major reorganization: adds priority levels (P0-P3) and size estimates, groups tasks by component/feature area |
| Makefile | Removes explicit test directory argument from pytest commands (relies on testpaths config) |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Guido van Rossum (gvanrossum)
approved these changes
Nov 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.