Skip to content

chore: remove dead config.ini / configparser code#2887

Merged
danielaskdd merged 1 commit intoHKUDS:mainfrom
jwchmodx:chore/remove-dead-config-ini-code
Apr 3, 2026
Merged

chore: remove dead config.ini / configparser code#2887
danielaskdd merged 1 commit intoHKUDS:mainfrom
jwchmodx:chore/remove-dead-config-ini-code

Conversation

@jwchmodx
Copy link
Copy Markdown
Contributor

@jwchmodx jwchmodx commented Apr 3, 2026

Summary

Removes two lines of dead code that have been annotated # TODO: TO REMOVE @Yannick since they were added:

# TODO: TO REMOVE @Yannick
config = configparser.ConfigParser()
config.read("config.ini", "utf-8")

The config variable is never read anywhere else in lightrag.py, so the block is pure noise. Removing it also lets us drop the import configparser line at the top of the file.

Tests

317 passed, 34 skipped

The module-level `config = configparser.ConfigParser()` block has been
annotated `# TODO: TO REMOVE @Yannick` since it was added.  The variable
is never read anywhere in the file, so both the import and the two dead lines
are deleted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@danielaskdd
Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielaskdd danielaskdd merged commit f3dab31 into HKUDS:main Apr 3, 2026
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