Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ These options can be used with any command:
- `--local`: Run commands locally instead of in the cloud.
- `--context CONTEXT_NAME`: Override automatic context detection and use the specified context from `.pddrc`.
- `--list-contexts`: List all available contexts defined in `.pddrc` and exit.
- `--exclude-tests`: Exclude test scenarios from code coverage generation. (WIP)
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

The documentation description doesn't match the actual feature. This flag disables automatic inclusion of unit test files during code generation, not code coverage generation. Update to match the actual functionality.

Suggested change
- `--exclude-tests`: Exclude test scenarios from code coverage generation. (WIP)
- `--exclude-tests`: Disable automatic inclusion of unit test files during code generation. (WIP)

Copilot uses AI. Check for mistakes.

### Context Selection Flags

Expand Down
9 changes: 9 additions & 0 deletions pdd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ def _run_setup_utility() -> None:
default=False,
help="Review and optionally exclude few-shot examples before command execution.",
)
@click.option(
"--exclude-tests",
"exclude_tests",
is_flag=True,
default=False,
help="Exclude test scenarios from code coverage generation. (WIP)",
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

The help text is misleading. Based on the implementation and PR description, this flag excludes test files from being auto-included during code generation, not from 'code coverage generation'. Consider: 'Disable automatic inclusion of unit test files during code generation.'

Suggested change
help="Exclude test scenarios from code coverage generation. (WIP)",
help="Disable automatic inclusion of unit test files during code generation.",

Copilot uses AI. Check for mistakes.
)
@click.option(
"--local",
is_flag=True,
Expand Down Expand Up @@ -246,6 +253,7 @@ def cli(
quiet: bool,
output_cost: Optional[str],
review_examples: bool,
exclude_tests: bool,
local: bool,
time: Optional[float], # Type hint is Optional[float]
context_override: Optional[str],
Expand All @@ -265,6 +273,7 @@ def cli(
ctx.obj["quiet"] = quiet
ctx.obj["output_cost"] = output_cost
ctx.obj["review_examples"] = review_examples
ctx.obj["exclude_tests"] = exclude_tests
ctx.obj["local"] = local
# Use DEFAULT_TIME if time is not provided
ctx.obj["time"] = time if time is not None else DEFAULT_TIME
Expand Down
Loading