Skip to content

🧹 cleanup settings resolver and README extras guidance#263

Open
Gudsfile wants to merge 2 commits into
mainfrom
chore/tech-debt
Open

🧹 cleanup settings resolver and README extras guidance#263
Gudsfile wants to merge 2 commits into
mainfrom
chore/tech-debt

Conversation

@Gudsfile
Copy link
Copy Markdown
Owner

@Gudsfile Gudsfile commented May 22, 2026

Summary

This PR cleans up technical debt in the settings resolver and fixes contradictory developer setup documentation.

Changes

Remove unreachable code in the settings resolver. paths.add(dotted_path) could never be reached because the preceding condition always raised first. Simplifies the control flow and removes dead logic.

Update developer setup documentation: remove the uv sync --all-extras recommendation from the README. Align setup instructions with AGENTS.md, since extras are environment-dependent (hardware support, Python version, etc.). Prevent installation issues on unsupported hardware such as PN532/NFC setups.

Comments

(I tried https://github.com/ksimback/tech-debt-skill and only considered the simplest issues.)

Gudsfile added 2 commits May 22, 2026 01:38
`if not is_editable_setting_path(dotted_path)` is **always True**, reaching that branch requires both the editable check and the dict check to have been False, meaning the path is already non-editable. The raise at line 320 always fires; `paths.add(dotted_path)` at line 322 is unreachable.
The Developer Setup section says "Add `--all-extras` to install dependencies for all extras (`api` and `ui`)."
`AGENTS.md` explicitly prohibit `uv sync --all-extras` because extras are environment-dependent (NFC hardware, Python version).
A human contributor reading only the README will follow the contradicted advice.
Remove the `--all-extras` recommendation from README.
@Gudsfile Gudsfile changed the title 🧹 🧹 cleanup settings resolver and README extras guidance May 22, 2026
@Gudsfile Gudsfile self-assigned this May 22, 2026
@Gudsfile Gudsfile marked this pull request as ready for review May 22, 2026 00:28
@Gudsfile Gudsfile requested a review from msgerbush May 23, 2026 00: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.

1 participant