Skip to content

Drop the duplicate hom key from .typos.toml - #4016

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-typos-duplicate-key
Jul 25, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-typos-duplicate-key

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

This PR should be ignored until reviewed by @ChrisRackauckas.

The failure

Spell Check with Typos fails on master in 6 seconds, exit code 78:

$ /home/runner/work/_temp/typos .
TOML parse error at line 149, column 1
    | ^^^
##[error]Process completed with exit code 78.

Why

.typos.toml declares hom twice, and TOML forbids duplicate keys:

$ grep -n '^hom = ' .typos.toml
72:hom = "hom"  # homotopy abbreviation (scc_hom, HomotopyProblem)
149:hom = "hom"  # scc_hom homotopy abbreviation in NonlinearSolve tests (#3989)

Line 72 came from #4004, line 149 from #4000 — two PRs allowlisting the same
abbreviation, merged close together. typos cannot parse its own config, so it
exits before checking a single file: the spell check has not actually run on
master since.

The fix

Remove the later duplicate. The line 72 declaration already covers the
scc_hom variables the second entry was added for. A pointer comment goes in
its place, matching how the file already handles this for Numer
(# (Numer already declared above for "BIT Numer" context.)).

Verification

Reproduced and fixed locally with the same command the workflow runs:

$ typos .            # on master
TOML parse error at line 149, column 1
    |
149 | hom = "hom"  # scc_hom homotopy abbreviation in NonlinearSolve tests (#3989)
    | ^^^
duplicate key
exit=78

$ typos .            # on this branch
exit=0

Clean exit with no findings, so the spell check now actually runs and passes —
and dropping the entry loses no coverage (hom is still allowlisted by line 72).

Local typos is 1.47.0 vs the workflow's 1.48.0; the TOML duplicate-key rejection
is version-independent, but CI on this PR is the authoritative check for 1.48's
dictionary.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TPHRh64BLfoXSzQ3AxKNwC

SciML#4004 added `hom` under "Technical variable names" (line 72) and SciML#4000 added it
again at the end of the file (line 149). TOML forbids duplicate keys, so typos
cannot read its own config and bails out before checking anything:

    TOML parse error at line 149, column 1
        |
    149 | hom = "hom"  # scc_hom homotopy abbreviation in NonlinearSolve tests (SciML#3989)
        | ^^^
    duplicate key

Remove the later entry — the line 72 declaration already covers the `scc_hom`
variables — and leave a pointer in its place, matching how the file already
notes the same situation for `Numer`.

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 25, 2026 04:02
@ChrisRackauckas
ChrisRackauckas merged commit d8cd163 into SciML:master Jul 25, 2026
22 checks passed
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.

2 participants