Skip to content

feat: Refactor ignore#100

Merged
stephantul merged 6 commits into
mainfrom
refactor-ignore
May 17, 2026
Merged

feat: Refactor ignore#100
stephantul merged 6 commits into
mainfrom
refactor-ignore

Conversation

@stephantul
Copy link
Copy Markdown
Contributor

This PR completely refactors the file walker. The code now:

  1. respects all .gitignores in the user's directory, not just the root one
  2. introduces a .sembleignore, which is a .gitignore that works in addition to the .gitignore, and can be used to override or supplant any .gitignore directive
  3. adds support for all extensions supported by tree-sitter-language-pack.

The extensions argument is still supported, and acts like a pseudo .gitignore.

@stephantul stephantul requested a review from Pringled May 17, 2026 06:59
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/index/create.py 100.00% <100.00%> (ø)
src/semble/index/file_walker.py 100.00% <100.00%> (ø)
src/semble/index/files.py 100.00% <100.00%> (ø)
src/semble/index/index.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@Pringled Pringled left a comment

Choose a reason for hiding this comment

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

Couple of small things, but this is a big improvement overall

Comment thread src/semble/index/file_walker.py Outdated
Comment thread src/semble/index/file_walker.py Outdated
Comment thread src/semble/index/create.py
Comment thread src/semble/index/file_walker.py Outdated
@stephantul stephantul merged commit 4dd0487 into main May 17, 2026
16 checks passed
@stephantul stephantul deleted the refactor-ignore branch May 17, 2026 10:49
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