Skip to content

refactor: import pgraph unconditionally in BundleAdjust - #132

Merged
petercorke merged 3 commits into
mainfrom
refactor/bundleadjust-require-pgraph
Oct 13, 2026
Merged

petercorke merged 3 commits into
mainfrom
refactor/bundleadjust-require-pgraph

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Stacked on #129 (same file); base is that branch, GitHub retargets to main when it merges.

pgraph-python is a core dependency, so the try/except ImportError, the pgraph_installed flag and the empty stub BundleAdjust class were dead code that would only have hidden a broken install behind a print. Removed, and the module dedented one level.

Review tip: git diff -w is ~30 lines; the rest is indentation.

Tested with tests/test_bundleadjust.py and tests/test_star_import.py against pgraph 0.6.4 and 1.0.0.

🤖 Generated with Claude Code

pgraph-python is a core dependency, so the try/except ImportError and
the empty stub BundleAdjust class were dead code that would have hidden
a broken install behind a print.  Drop them and dedent the module.

Whitespace-only apart from the import (git diff -w).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Base automatically changed from fix/bundleadjust-pgraph-compat to main October 13, 2026 02:38
@petercorke
petercorke merged commit 3ec5bda into main Oct 13, 2026
37 checks passed
@petercorke
petercorke deleted the refactor/bundleadjust-require-pgraph branch October 13, 2026 03:15
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