Skip to content

Audit docs, drop dead code, add snippet linter#65

Merged
benoitc merged 1 commit intomainfrom
chore/doc-audit-and-dead-code
May 3, 2026
Merged

Audit docs, drop dead code, add snippet linter#65
benoitc merged 1 commit intomainfrom
chore/doc-audit-and-dead-code

Conversation

@benoitc
Copy link
Copy Markdown
Owner

@benoitc benoitc commented May 3, 2026

Summary

  • Fix two stale identifier references in docs (Py_GIL_OWN -> PyInterpreterConfig_OWN_GIL in docs/scalability.md; corrected multi_executor fallback claim in docs/migration.md).
  • Delete priv/_erlang_impl/_ssl.py (no importer) and three uncalled py_util exports (send_response/3, normalize_timeout/1,2).
  • Repair a broken SharedDict snippet in docs/shared-dict.md (missing close paren and a non-functional handle-injection pattern).
  • Add tests for py:cast/4, py:async_gather/2, and py:dup_fd/1; add test/coverage_audit.md mapping every public API to its test suite.
  • New scripts/lint_doc_snippets.escript validates py:Fn/N calls and Python syntax in fenced blocks; wired into a Makefile target and CI. Snippets that intentionally show removed APIs or REPL output use <!-- skip-lint -->.

Verification: rebar3 ct 436/436 pass, rebar3 xref clean, rebar3 dialyzer clean, make lint-docs clean across 26 docs.

Fix two stale identifier references (Py_GIL_OWN, multi_executor fallback),
delete priv/_erlang_impl/_ssl.py and three uncalled py_util/0,1,2,3
exports, and repair a broken SharedDict example in docs/shared-dict.md.
Add tests for py:cast/4, py:async_gather/2 and py:dup_fd/1, plus
test/coverage_audit.md mapping every public API to its suite.
New scripts/lint_doc_snippets.escript validates py:Fn/N calls and
Python syntax in fenced blocks; wired into CI and a Makefile target.
@benoitc benoitc merged commit e6b05f2 into main May 3, 2026
14 checks passed
@benoitc benoitc deleted the chore/doc-audit-and-dead-code branch May 3, 2026 13:29
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