Commit 71f2921
committed
Pin what actually keeps the probe config stable
`apply_arrival` carried a comment claiming `format-pyproject` expands inline
tables back into sections, and that writing sections avoided a ping-pong.
Running the formatter over a real `pyproject.toml` shows the reverse: it
collapses both shapes into dotted keys under `[tool.repomatic]`.
The rationale was wrong; the behaviour happens to be right. tomlrt cannot emit
a dotted key at all, since assigning one produces a quoted key holding dots,
so the formatter necessarily has the last word on layout. What keeps the two
from rewriting each other is that the dotted shape reads back as the same
nested value, so a second apply finds the label already declared and writes
nothing.
That is the invariant worth holding, and nothing held it. The new test applies
against the formatter's real output rather than against what the applier
writes, which is the version of this check that would have caught the mistaken
comment in the first place.1 parent 19512d8 commit 71f2921
2 files changed
Lines changed: 41 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
735 | 741 | | |
736 | 742 | | |
737 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
186 | 216 | | |
187 | 217 | | |
188 | 218 | | |
| |||
0 commit comments