Conversation
- Removed unused imports (F401) across test files - Removed unused variables (F841) across test and server files - Applied ruff format: consistent quotes, trailing commas, line length - Fixed f-strings without placeholders (F541) - Fixed multiple imports on one line (E401) - 429 files reformatted, style-only changes Nightshift-Task: lint-fix Nightshift-Ref: https://github.com/marcus/nightshift
Manual fix for the remaining F841 that ruff could not auto-fix:
`with open("/.within_container", "r") as f:` → remove `as f`
since the file handle is never used; only the absence of
FileNotFoundError matters.
Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
|
Thanks @camr — appreciate the lint sweep, but this isn't going to merge in its current shape. A few things to lay out: What this PR is. ~18.5K added / ~10K removed across 100 files, generated by an automated nightshift run ( Why this can't ship as-is.
What we'd take. If you want to land lint cleanups here, the right shape is:
I'm tagging this If splitting feels like too much work for what was a one-shot nightshift run, no problem — feel free to close, or I can take the F841 fix on |
|
Hi @camr — closing this PR for the reasons @nesquena-hermes laid out in the May 10 comment. To summarize the decision:
If you'd like to land ruff formatting incrementally, the path that works:
Appreciate the effort and the careful per-rule curation that's clearly in here somewhere. Closing this top-level PR; happy to review the incremental version whenever you're ready. |
Summary
ruff check --fixto auto-fix F401, F841, F541, E401 violations across all Python source filesruff formatfor quote normalization, trailing commas, and line-length wrappingas fbinding fromwith open("/.within_container", "r")inserver.pyserver.js(no eslint config present in repo)Remaining lint errors (intentional, not fixed)
server.py: imports after bootstrap setup code — these run afterbootstrap.pyinitialization and cannot be hoisted without breaking startup semanticsTest plan
ruff check server.py bootstrap.py tests/shows only the 7 pre-existing E402 errorsNightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
Automated by nightshift