You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Managed .yamllint / .pymarkdown (+ .pymarkdown.config.md) silently clobber consumer lint config on upgrade (same class as #878/#913) #1099
.yamllint and .pymarkdown.config.md are fully-managed scaffold files
(init-workspace.sh overwrites them on every --force, carrying the "regenerated on upgrade; local edits are lost" banner), yet they are lint configs a consumer legitimately customizes with repo-specific ignore:
globs, rule disables, and domain exceptions. On upgrade those edits are silently
destroyed and the hook then flags legitimate content — the exact failure that .pre-commit-config.yaml (#878) and .typos.toml (#913) were fixed for
by promoting them to PRESERVE_FILES.
The same reasoning was never applied to .yamllint / .pymarkdown.config.md.
This is the class-A generalization identified in the epic (#1096): a managed
full-overwrite file with no durable consumer seam.
Mechanism
assets/workspace/.yamllint and assets/workspace/.pymarkdown.config.md are
copied by the template and NOT listed in PRESERVE_FILES (init-workspace.sh),
so rsync overwrites any consumer edits on install.sh --force.
Mirror the .typos.toml (#913) promotion exactly for both files:
Add ".yamllint" and ".pymarkdown.config.md" to PRESERVE_FILES in assets/init-workspace.sh.
Add the *_PREEXISTED capture + print_preserved_template_diff call so the
upgrade still surfaces template evolution against the preserved file (as .typos.toml / .pre-commit-config.yaml do).
The banner transform derives managed-vs-preserved text from PRESERVE_FILES
(tests/test_transforms.py), so both files must render the preserved
banner after promotion — verify no managed banner leaks.
Tests: extend tests/bats/init-workspace.bats (preserve-on-upgrade cases,
mirroring the .typos.toml/pyproject preserve tests) and tests/test_transforms.py (preserved-banner coverage).
Scope / non-goals
Only these two lint-config files. The broader "managed base + consumer fragment"
convention for files that cannot be whole-file preserved (root .gitignore) is
tracked separately in #1092. Editor/config files with a milder, lower-frequency
version of this concern (.vscode/settings.json, .devcontainer/devcontainer.json, SECURITY.md) are observations in #1096, not in scope here.
changed the title [-][BUG] Managed .yamllint / .pymarkdown.config.md silently clobber consumer lint exceptions on upgrade (same class as #878/#913)[/-][+][BUG] Managed .yamllint / .pymarkdown (+ .pymarkdown.config.md) silently clobber consumer lint config on upgrade (same class as #878/#913)[/+]on Jul 15, 2026
Correction (scope): the file a consumer actually customizes for markdown-lint rules is .pymarkdown (the JSON config pymarkdown reads — md012/md013/md036 etc.), not just .pymarkdown.config.md (its human-readable companion). .pymarkdown is comment-less JSON so it carries no managed banner (it is in _BANNER_SKIP), which is why the original triage keyed on the banner missed it. The correct fix preserves .pymarkdown — precedent: renovate.json is already a preserved, banner-skip-listed JSON in PRESERVE_FILES. .pymarkdown.config.md is preserved too so the config+doc stay a consumer-owned pair. .yamllint is unchanged (it is the real yamllint config).
Fixed by #1102 (merged to dev, commit 23dd89a7; ships in the next release). Shipped: promoted .pymarkdown (the JSON config pymarkdown reads), .yamllint, and the .pymarkdown.config.md doc companion to PRESERVE_FILES — mirroring the .typos.toml (#913) change set — so consumer lint-rule exceptions survive install.sh --force. .pymarkdown stays un-bannered in _BANNER_SKIP like the already-preserved renovate.json. Part of #1096.
Activity
[-][BUG] Managed .yamllint / .pymarkdown.config.md silently clobber consumer lint exceptions on upgrade (same class as #878/#913)[/-][+][BUG] Managed .yamllint / .pymarkdown (+ .pymarkdown.config.md) silently clobber consumer lint config on upgrade (same class as #878/#913)[/+]c-vigo commentedon Jul 15, 2026
Correction (scope): the file a consumer actually customizes for markdown-lint rules is
.pymarkdown(the JSON config pymarkdown reads —md012/md013/md036etc.), not just.pymarkdown.config.md(its human-readable companion)..pymarkdownis comment-less JSON so it carries no managed banner (it is in_BANNER_SKIP), which is why the original triage keyed on the banner missed it. The correct fix preserves.pymarkdown— precedent:renovate.jsonis already a preserved, banner-skip-listed JSON inPRESERVE_FILES..pymarkdown.config.mdis preserved too so the config+doc stay a consumer-owned pair..yamllintis unchanged (it is the real yamllint config).fix(init-workspace): durable consumer seam for repo-root ignores (#1100)
fix(init-workspace): warn on scaffold/flake-pin version skew (#1101)
fix(workspace): preserve .pymarkdown / .yamllint lint configs on upgr…
c-vigo commentedon Jul 15, 2026
Fixed by #1102 (merged to
dev, commit23dd89a7; ships in the next release). Shipped: promoted.pymarkdown(the JSON config pymarkdown reads),.yamllint, and the.pymarkdown.config.mddoc companion toPRESERVE_FILES— mirroring the.typos.toml(#913) change set — so consumer lint-rule exceptions surviveinstall.sh --force..pymarkdownstays un-bannered in_BANNER_SKIPlike the already-preservedrenovate.json. Part of #1096.chore: release 1.2.1 (#260)
chore: release 1.2.1 (#1109)