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] nix/hooks.nix pymarkdown excludes still reference CONTRIBUTE.md after the CONTRIBUTING.md rename #1380
PR #1376 (#1372) renamed CONTRIBUTE.md to CONTRIBUTING.md and updated the
pymarkdown exclude in .pre-commit-config.yaml, but missed the flake-side
mirror in nix/hooks.nix. The two sources of the hook config have drifted:
tests/test_flake_hooks.py::test_runner_render_matches_committed_config FAILS
on a plain uv run pytest tests run from origin/dev — the flake-rendered
config no longer matches the committed .pre-commit-config.yaml.
Functionally, the flake-generated hook set no longer excludes the (renamed)
contributing guide from pymarkdown, and still excludes a file that no longer
exists.
Fix
Update the three exclude patterns (and the line-436 comment) in nix/hooks.nix from CONTRIBUTE to CONTRIBUTING, and confirm test_runner_render_matches_committed_config passes again.
Fixed on dev by PR #1383: the three pymarkdown exclude patterns (and the comment) in nix/hooks.nix now reference CONTRIBUTING.md, plus the same stale exclude in the scaffold template assets/workspace/.pre-commit-config.yaml (necessary addition — the sibling scaffold drift gate failed without it, same #1372 rename fallout). Pinned by the pre-existing drift-gate tests: test_runner_render_matches_committed_config red before, all 36 flake-hook tests green after. Remaining cosmetic loose end: a prose comment at flake.nix:1358 still mentions CONTRIBUTE.md — can ride any future PR.
Activity
fix(hooks): rename pymarkdown excludes to CONTRIBUTING.md in flake mi…
c-vigo commentedon Aug 7, 2026
Fixed on dev by PR #1383: the three pymarkdown exclude patterns (and the comment) in nix/hooks.nix now reference CONTRIBUTING.md, plus the same stale exclude in the scaffold template assets/workspace/.pre-commit-config.yaml (necessary addition — the sibling scaffold drift gate failed without it, same #1372 rename fallout). Pinned by the pre-existing drift-gate tests: test_runner_render_matches_committed_config red before, all 36 flake-hook tests green after. Remaining cosmetic loose end: a prose comment at flake.nix:1358 still mentions CONTRIBUTE.md — can ride any future PR.
fix(hooks): rename pymarkdown excludes to CONTRIBUTING.md in flake mi…
chore: release 1.7.0 (#350)
chore: release 1.7.0 (#1385)