Skip to content

chore: remove code comments and trim header rationale - #58

Open
jwesleye wants to merge 1 commit into
mainfrom
codex/comment-sweep
Open

jwesleye wants to merge 1 commit into
mainfrom
codex/comment-sweep

Conversation

@jwesleye

@jwesleye jwesleye commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Remove 1,110 ordinary code comments and trim rationale/history from Python headers and docstrings across 48 code files. Preserve executable statements, runtime strings, API contracts, four shebangs, thirteen type-ignore directives, and one noqa directive. Documentation and configuration are unchanged.

Validation

  • Baseline and post-cleanup pytest: 497 passed, 13 skipped.
  • Parser/token checks across all 54 tracked Python files confirm unchanged executable ASTs outside reviewed docstring edits and preservation of functional comments. The comment-presence check failed before the cleanup and passes afterward.
  • Black check passes after formatting affected code. The baseline had five formatting findings.
  • Ruff has one remaining pre-existing finding in src/tests, with no new findings (three findings across all Python files before cleanup).
  • Source distribution and wheel build successfully.
  • Independent diff review and git diff --check pass.

CI follow-up

CI tests pass on Python 3.10, 3.11, and 3.12 across Linux, macOS, and Windows, and mypy passes. Python 3.8/3.9 matrix jobs fail before tests: Ubuntu 26.04 lacks those runtimes; older setuptools rejects the existing license-files metadata on Python 3.8; Python 3.9 does not meet the existing >=3.10 requirement. Ruff reports the same pre-existing E501. Bandit 1.9.4 reports the same 11 findings on both the untouched base and this branch, with no additions or removals.

@github-actions github-actions Bot added area: core Core chat loop functionality area: config Configuration system area: tests size: XL Extra large PR (> 1000 lines changed) labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown

This PR is quite large! Consider: - Breaking it into smaller PRs - Explaining the scope in the description - Ensuring adequate test coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Configuration system area: core Core chat loop functionality area: tests size: XL Extra large PR (> 1000 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant