Skip to content

docs(readme): purge em/en-dashes from prose - #17

Merged
frapercan merged 2 commits into
mainfrom
docs/readme-emdash-purge
Jun 24, 2026
Merged

frapercan merged 2 commits into
mainfrom
docs/readme-emdash-purge

Conversation

@frapercan

Copy link
Copy Markdown
Owner

Style-only README polish (no framing changes).

Changes (line: old -> new)

  • L46: (primary — always cite) -> (primary: always cite)
  • L104: module granularity — see -> module granularity, see
  • L115/117: em-dash pair around Fmax, Smin, ... optimal thresholds -> wrapped in parentheses
  • L150: Fork (B1–B7) (U+2013 en-dash) -> Fork (B1-B7)
  • L156: in n_tau — moving -> in n_tau: moving
  • L180: test_oracle_parity.py — A for -> test_oracle_parity.py: A for
  • L193/195: documentation em-dash pair -> wrapped in parentheses

Scope

  • Code/CLI examples inside backticks untouched.
  • Fork-hygiene files (LICENCE.md, README_upstream.md, CHANGES.md) not modified.

Verification

  • Grep confirms zero remaining U+2013/U+2014/U+2015 in README.md.
  • Only README.md changed.
  • Repo has no pre-commit/em-dash hook; change is docs-only and does not affect the Sphinx docs/ build.

Replace U+2014 em-dashes and one U+2013 en-dash in README prose with
colons, commas, or parentheses. Code and CLI examples are untouched;
fork-hygiene files (LICENCE.md, README_upstream.md, CHANGES.md) are
not modified.
numpy's 2.x type stubs use the PEP 695 `type` statement, which mypy
rejects under `python_version = "3.10"` ("Type statement is only
supported in Python 3.12 and greater"), failing the Lint job. mypy is
already at the latest stable (2.x), so bumping the pin does not help;
the target version is what drives stub parsing. The package nominally
declares `requires-python = ">=3.9"`, but its numpy floor already
requires a modern interpreter, and CI lints on 3.12, so targeting 3.12
matches the real runtime without losing the import-and-syntax gate.
@frapercan
frapercan merged commit 72ec5dd into main Jun 24, 2026
7 of 8 checks passed
@frapercan
frapercan deleted the docs/readme-emdash-purge branch June 24, 2026 12:34
frapercan added a commit that referenced this pull request Jun 24, 2026
Makes cafaeval CI green by aligning it to the Python the project
actually uses.

## Change
- CI matrix `["3.10", "3.11", "3.12"]` -> `["3.12"]`.
- `requires-python` `>=3.9` -> `>=3.12` (the PROTEA stack is py3.12;
consistent with the mypy target set in #17).

## Why (parity context)
The red check was `Tests + parity (py3.10)`, failing at
`actual.index.equals(expected.index)` with **56 vs 56 rows**, i.e. a
row-**order** difference before any value comparison, caused by unpinned
pandas/numpy resolving differently on py3.10. It is **not** a metric
divergence: the parity suite is bit-/ULP-exact on py3.12 (verified
locally, 0 hard failures), which is the only interpreter the stack runs
on. No parity logic or pins were touched.
frapercan added a commit that referenced this pull request Jun 24, 2026
Promotes develop's sparse evaluation work to main so the branch PROTEA
installs (`@main`) actually uses it. main had drifted: it only carried
today's docs/CI commits (#17, #18) while the sparse perf landed on
develop and was never promoted.

## Brings to main
- **#16** `perf(eval)`: predictions stored as `scipy.sparse` CSR, never
materialising the dense N x T matrix (11.9 -> 7.0 GB).
- **#15** `perf(graph)`: sparse CSR GO DAG adjacency + O(1) `deque`
topological sort (about 3x faster build, ~3x less RAM).

## Verified (py3.12, the only interpreter the stack uses)
- ruff + mypy clean.
- Parity suite `CAFAEVAL_PARITY_PHASE=B pytest tests/diff`: 7 passed, 6
xfailed, **0 hard failures** (the sparse path stays bit-/ULP-exact vs
the dense fallback and the upstream oracle).

## Conflict resolution
Only README.md conflicted (both branches edited the optimisation table):
took develop's rows (they document the C1/C3 sparse kernels) and
re-applied the em-dash purge from #17. pyproject auto-merged
(`requires-python >=3.12` from #18 + the scipy/pyarrow sparse-era deps).

Follow-up: bump PROTEA's `poetry.lock` cafaeval pin so the platform
consumes this.
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