Skip to content

Releases: gotoUSA/linecite

Release list

linecite 0.1.1

Choose a tag to compare

@gotoUSA gotoUSA released this 25 Sep 21:24

First release on PyPI: pip install linecite (Python 3.11+, git).

Docs that cite code by line number (orders.py:310) go stale on the next commit that touches the lines above. linecite lets a citation name the code it means — a symbol and a quoted fragment — derives the line number from the source, and tells you which paragraphs to re-read after the code changes.

  • check fails on drifted numbers, citations whose code is gone, and number-only citations
  • sync rewrites drifted numbers in place
  • affected <rev> lists the doc lines whose cited code changed — the prose to re-read
  • audit traces existing number-only citations through git history and reports which already point at the wrong line; adopt converts them
  • pre-commit hooks linecite-check and linecite-sync
  • a GitHub Action that runs check and comments on pull requests with the paragraphs to re-read

0.1.1 differs from the v0.1.0 tag only in packaging: PyPI metadata and the release workflow.