Skip to content

refactor: centralize SUPPORTED_EXTENSIONS in indexer.py - #8

Merged
mrjunos merged 1 commit into
mainfrom
refactor/centralize-supported-extensions
Apr 8, 2026
Merged

refactor: centralize SUPPORTED_EXTENSIONS in indexer.py#8
mrjunos merged 1 commit into
mainfrom
refactor/centralize-supported-extensions

Conversation

@mrjunos

@mrjunos mrjunos commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Summary

SUPPORTED_EXTENSIONS was defined in 4 places:

  • backend/indexer.py
  • backend/watcher.py
  • backend/main.py (lifespan loop)
  • backend/main.py (upload validation)

Now defined once in indexer.py and imported by watcher.py and main.py. Adding a new format (e.g. .docx) requires a single change.

Test plan

  • 58 tests passing (no behavior change)
  • CI green

🤖 Generated with Claude Code

Previously defined in 4 places (indexer.py, watcher.py, and twice
in main.py). Now defined once in indexer.py and imported everywhere
else — adding a new format like .docx only requires one change.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrjunos
mrjunos merged commit 353c772 into main Apr 8, 2026
1 check passed
@mrjunos
mrjunos deleted the refactor/centralize-supported-extensions branch April 8, 2026 00:57
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