Skip to content

fix(hooks): rename pymarkdown excludes to CONTRIBUTING.md in flake mirror - #1383

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1380-hooks-nix-contributing-rename
Aug 7, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1380-hooks-nix-contributing-rename

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

PR #1376 (#1372) renamed CONTRIBUTE.md to CONTRIBUTING.md and updated the pymarkdown exclude in the root .pre-commit-config.yaml, but missed the flake-side mirror. This PR completes the rename:

  • nix/hooks.nix: the three pymarkdown exclude patterns (runner yaml, check, and consumer profiles) and the line-436 comment now say CONTRIBUTING.
  • assets/workspace/.pre-commit-config.yaml: the scaffold template's pymarkdown exclude — same rename fallout, and required for the scaffold half of the drift gate (test_scaffold_render_matches_scaffold_config) to stay green once the shared render in nix/hooks.nix is fixed.
  • CHANGELOG.md ## Unreleased → Fixed entry (plus its managed assets/workspace/.devcontainer/CHANGELOG.md mirror, updated by the sync-manifest hook).

Testing

No new test: the existing drift gate tests/test_flake_hooks.py::TestPortableRenderFidelity::test_runner_render_matches_committed_config already fails on origin/dev and pins this fix (TDD RED pre-satisfied).

  • Before: uv run pytest tests/test_flake_hooks.py -k test_runner_render_matches_committed_config → FAILED with pymarkdown.exclude: rendered='^(README\\.md|CONTRIBUTE\\.md|TESTING\\.md)' committed='^(README\\.md|CONTRIBUTING\\.md|TESTING\\.md)'.
  • After: uv run pytest tests/test_flake_hooks.py → 36 passed.
  • just precommit (full suite, all files) green.

Closes #1380

…rror

PR #1376 renamed CONTRIBUTE.md to CONTRIBUTING.md and updated the root
.pre-commit-config.yaml, but missed the flake-side mirror in nix/hooks.nix
(runner yaml, check, and consumer profiles) and the scaffold template
assets/workspace/.pre-commit-config.yaml. The drift gate
test_runner_render_matches_committed_config failed on dev; both mirrors now
exclude the renamed guide again.

Refs: #1380
@c-vigo
c-vigo force-pushed the bugfix/1380-hooks-nix-contributing-rename branch from 15e5af3 to 8edb727 Compare August 7, 2026 16:37
@c-vigo
c-vigo merged commit 046417c into dev Aug 7, 2026
15 checks passed
@c-vigo
c-vigo deleted the bugfix/1380-hooks-nix-contributing-rename branch August 7, 2026 16:46
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