Skip to content

fix: test_clustering_forced.py passes kwargs Config.from_cli does not accept - #58

Merged
michaelassraf merged 1 commit into
mainfrom
fix/test-clustering-forced-config
Sep 8, 2026
Merged

michaelassraf merged 1 commit into
mainfrom
fix/test-clustering-forced-config

Conversation

@michaelassraf

Copy link
Copy Markdown

Config.from_cli has no dependency_graph_dir or docs_dir parameter, so the call in test_clustering_forced.py is a TypeError.

It reached main because #35 and #46 changed the same construction differently and git auto-merged to #35's from_cli form without raising a conflict — and the verification pass on those PRs only checked direct Config(...) calls, not Config.from_* factories.

Restores the direct Config(...) construction #46 landed, which accepts all sixteen kwargs including the two output directories the test relies on.

Verified: every Config construction site in the repo now checks out both ways — direct construction against the dataclass fields, and each from_* call against the factory's real signature.

🤖 Generated with Claude Code

… accept

Config.from_cli has no dependency_graph_dir or docs_dir parameter, so the call
was a TypeError. It reached main because #35 and #46 changed the same
construction differently and git auto-merged to #35's from_cli form without
raising a conflict, and my verification pass only checked direct Config(...)
calls - it did not look at Config.from_* factories at all.

Restore the direct Config(...) construction #46 landed, which takes all sixteen
kwargs including the two output directories this test relies on.

Every Config construction site in the repo is now checked both ways - direct
construction against the dataclass fields, and each from_* call against the
factory's real signature.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@michaelassraf
michaelassraf merged commit 48a233f into main Sep 8, 2026
1 of 2 checks passed
@michaelassraf
michaelassraf deleted the fix/test-clustering-forced-config branch September 8, 2026 03:11
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