Skip to content

chore: Remove dead code and deduplicate internals - #272

Merged
Pringled merged 2 commits into
mainfrom
refactor/simplify-internals
Sep 25, 2026
Merged

Pringled merged 2 commits into
mainfrom
refactor/simplify-internals

Conversation

@Pringled

Copy link
Copy Markdown
Member

This PR removes a bunch of dead code that was left over from older refactors or features we changed. There's also some deduplication, and weighting.py is now just folded into boosting.py because it was only a couple of lines and only used there. Scores and speed on the benchmark are the exact same and all tests still pass.

@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/cache.py 100.00% <100.00%> (ø)
src/semble/cli.py 100.00% <100.00%> (ø)
src/semble/index/bm25.py 100.00% <100.00%> (ø)
src/semble/index/dense.py 100.00% <100.00%> (ø)
src/semble/index/files.py 100.00% <100.00%> (ø)
src/semble/index/index.py 100.00% <100.00%> (ø)
src/semble/installer/agents.py 100.00% <100.00%> (ø)
src/semble/installer/config.py 100.00% <100.00%> (ø)
src/semble/installer/installer.py 100.00% <ø> (ø)
src/semble/mcp.py 100.00% <100.00%> (ø)
... and 5 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greptile-apps

greptile-apps Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness, security, or repository-rule issues.

Reviews (2) · Last reviewed commit: "fix: Bound the path penalty cache"

Comment thread src/semble/ranking/penalties.py Outdated
@Pringled
Pringled requested a review from stephantul September 18, 2026 07:31

@stephantul stephantul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One question about a conspicuous change but otherwise fine.

"""Distinguish between existence and permission issues."""
try:
path.stat()
except FileNotFoundError:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this resolved?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yep just falls through to except OSError: return False later like before, effectively it was not doing anything

@Pringled
Pringled merged commit 784750c into main Sep 25, 2026
17 checks passed
@Pringled
Pringled deleted the refactor/simplify-internals branch September 25, 2026 05:10
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