codedoctor 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. {codedoctor-0.1.6 → codedoctor-0.1.7}/PKG-INFO +1 -1
  2. {codedoctor-0.1.6 → codedoctor-0.1.7}/RELEASING.md +12 -26
  3. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/install.py +117 -2
  4. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/install_test.py +74 -4
  5. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutated.py +2 -1
  6. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutated_test.py +8 -6
  7. {codedoctor-0.1.6 → codedoctor-0.1.7}/pyproject.toml +5 -2
  8. {codedoctor-0.1.6 → codedoctor-0.1.7}/uv.lock +20 -21
  9. codedoctor-0.1.6/CHANGELOG.md +0 -72
  10. {codedoctor-0.1.6 → codedoctor-0.1.7}/.gitignore +0 -0
  11. {codedoctor-0.1.6 → codedoctor-0.1.7}/.pre-commit-config.yaml +0 -0
  12. {codedoctor-0.1.6 → codedoctor-0.1.7}/.python-version +0 -0
  13. {codedoctor-0.1.6 → codedoctor-0.1.7}/AI_POLICY.md +0 -0
  14. {codedoctor-0.1.6 → codedoctor-0.1.7}/CODE_OF_CONDUCT.md +0 -0
  15. {codedoctor-0.1.6 → codedoctor-0.1.7}/CONTRIBUTING.md +0 -0
  16. {codedoctor-0.1.6 → codedoctor-0.1.7}/LICENSE +0 -0
  17. {codedoctor-0.1.6 → codedoctor-0.1.7}/README.md +0 -0
  18. {codedoctor-0.1.6 → codedoctor-0.1.7}/SECURITY.md +0 -0
  19. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/__init__.py +0 -0
  20. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/__main__.py +0 -0
  21. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/__init__.py +0 -0
  22. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/__main__.py +0 -0
  23. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/affected.py +0 -0
  24. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/affected_test.py +0 -0
  25. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/backbone.py +0 -0
  26. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/backbone_test.py +0 -0
  27. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/codegraph_sync.py +0 -0
  28. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/affected/codegraph_sync_test.py +0 -0
  29. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/assert_isinstance/__init__.py +0 -0
  30. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/assert_isinstance/__main__.py +0 -0
  31. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/assert_isinstance/unnecessary_assert_isinstance.py +0 -0
  32. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/assert_isinstance/unnecessary_assert_isinstance_test.py +0 -0
  33. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cargo/__init__.py +0 -0
  34. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cargo/__main__.py +0 -0
  35. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cargo/cargo.py +0 -0
  36. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cargo/cargo_test.py +0 -0
  37. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cli.py +0 -0
  38. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/cli_test.py +0 -0
  39. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/codegraph.py +0 -0
  40. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/codegraph_test.py +0 -0
  41. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/coverage_floor/__init__.py +0 -0
  42. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/coverage_floor/__main__.py +0 -0
  43. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/coverage_floor/coverage_floor.py +0 -0
  44. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/coverage_floor/coverage_floor_test.py +0 -0
  45. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/__init__.py +0 -0
  46. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/__main__.py +0 -0
  47. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/check_export_leaks.py +0 -0
  48. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/check_export_leaks_test.py +0 -0
  49. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/check_pr_text.py +0 -0
  50. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/export_leaks/check_pr_text_test.py +0 -0
  51. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/__init__.py +0 -0
  52. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/__main__.py +0 -0
  53. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/fakes.py +0 -0
  54. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/fakes_test.py +0 -0
  55. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/gate.py +0 -0
  56. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/gate_test.py +0 -0
  57. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/spool.py +0 -0
  58. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/gate/spool_test.py +0 -0
  59. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/install_biome.json +0 -0
  60. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/install_hooks.yaml +0 -0
  61. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/__init__.py +0 -0
  62. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/__init__.py +0 -0
  63. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/glob.py +0 -0
  64. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/glob_test.py +0 -0
  65. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/grep.py +0 -0
  66. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/grep_test.py +0 -0
  67. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/owner_only.py +0 -0
  68. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/owner_only_test.py +0 -0
  69. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/source_version.py +0 -0
  70. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/source_version_test.py +0 -0
  71. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/tempclaim.py +0 -0
  72. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/tempclaim_test.py +0 -0
  73. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/walk.py +0 -0
  74. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/files/walk_test.py +0 -0
  75. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/kernel_pins.py +0 -0
  76. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/kernel_pins_test.py +0 -0
  77. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/pyproject_flags.py +0 -0
  78. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/pyproject_flags_test.py +0 -0
  79. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/sidecars.py +0 -0
  80. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/sidecars_test.py +0 -0
  81. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/__init__.py +0 -0
  82. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/basetemp.py +0 -0
  83. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/checks.py +0 -0
  84. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/checks_test.py +0 -0
  85. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/resources.py +0 -0
  86. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/runner.py +0 -0
  87. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/runner_test.py +0 -0
  88. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/testing/wheel.py +0 -0
  89. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/userdirs.py +0 -0
  90. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/worker_count.py +0 -0
  91. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lib/worker_count_test.py +0 -0
  92. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/__init__.py +0 -0
  93. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/__main__.py +0 -0
  94. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/checker.py +0 -0
  95. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/checker_test.py +0 -0
  96. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/custom_types.py +0 -0
  97. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/custom_types_test.py +0 -0
  98. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/house_ignore.py +0 -0
  99. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/house_ignore_test.py +0 -0
  100. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/rules.py +0 -0
  101. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/lint/rules_test.py +0 -0
  102. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/README.md +0 -0
  103. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/__init__.py +0 -0
  104. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/__main__.py +0 -0
  105. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_adapter.py +0 -0
  106. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_adapter_test.py +0 -0
  107. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_cli.py +0 -0
  108. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_cli_test.py +0 -0
  109. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_dynamo.py +0 -0
  110. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_dynamo_test.py +0 -0
  111. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_kill_guard.py +0 -0
  112. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_kill_guard_test.py +0 -0
  113. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_outcome.py +0 -0
  114. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_outcome_test.py +0 -0
  115. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_param_ids.py +0 -0
  116. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/mutation/mutmut_param_ids_test.py +0 -0
  117. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/nbstripout/__init__.py +0 -0
  118. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/nbstripout/__main__.py +0 -0
  119. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/nbstripout/nbstripout_hook.py +0 -0
  120. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/nbstripout/nbstripout_hook_test.py +0 -0
  121. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/policy.py +0 -0
  122. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/policy_test.py +0 -0
  123. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/py.typed +0 -0
  124. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/__init__.py +0 -0
  125. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/__main__.py +0 -0
  126. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/coverage_summary.py +0 -0
  127. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/coverage_summary_test.py +0 -0
  128. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/listing.py +0 -0
  129. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/listing_test.py +0 -0
  130. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/outcomes.py +0 -0
  131. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/outcomes_test.py +0 -0
  132. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/testing.py +0 -0
  133. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/testing_test.py +0 -0
  134. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/tiers.py +0 -0
  135. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/testing/tiers_test.py +0 -0
  136. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/__init__.py +0 -0
  137. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/__main__.py +0 -0
  138. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/scope.py +0 -0
  139. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/scope_test.py +0 -0
  140. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/typecheck.py +0 -0
  141. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/typecheck/typecheck_test.py +0 -0
  142. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/yamlcheck/__init__.py +0 -0
  143. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/yamlcheck/__main__.py +0 -0
  144. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/yamlcheck/checker.py +0 -0
  145. {codedoctor-0.1.6 → codedoctor-0.1.7}/codedoctor/yamlcheck/checker_test.py +0 -0
  146. {codedoctor-0.1.6 → codedoctor-0.1.7}/conftest.py +0 -0
  147. {codedoctor-0.1.6 → codedoctor-0.1.7}/tests/lib/testing/basetemp_test.py +0 -0
  148. {codedoctor-0.1.6 → codedoctor-0.1.7}/tests/lib/testing/resources_test.py +0 -0
  149. {codedoctor-0.1.6 → codedoctor-0.1.7}/tests/lib/testing/wheel_test.py +0 -0
  150. {codedoctor-0.1.6 → codedoctor-0.1.7}/tests/lib/userdirs_test.py +0 -0
  151. {codedoctor-0.1.6 → codedoctor-0.1.7}/typings/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: codedoctor
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Pre-commit gates that run each heavy check once, sized to the machine.
5
5
  Project-URL: Homepage, https://www.rekursiv.ai
6
6
  Project-URL: Repository, https://github.com/rekursiv-ai/codedoctor
@@ -23,38 +23,22 @@ which builds, validates, and uploads to PyPI via OIDC trusted publishing
23
23
  Environment name **must** be `pypi` (matches `publish-pypi.yml:16`).
24
24
  Blank here = `invalid-publisher` at publish time.
25
25
 
26
- 2. **Bump the version** in `pyproject.toml` (source of truth). Must
27
- increase; PyPI rejects re-uploads.
26
+ 2. **Pick the version.** The release tag is the version (hatch-vcs);
27
+ nothing in the tree states it. Must increase; PyPI rejects re-uploads.
28
+ Release notes are generated from the commits since the last tag.
28
29
 
29
- 3. **Refresh the lockfile and validate locally** (same checks CI runs):
30
-
31
- `uv lock` first: the lockfile pins this package's own version, so
32
- building without it publishes an artifact whose lock still names the
33
- previous one -- and `uv run` below resolves from the lock, so the smoke
34
- test imports the OLD code and passes.
35
-
36
- ```bash
37
- uv lock
38
- uv build
39
- uv run python -c "import codedoctor; print(codedoctor.__file__)"
40
- ```
41
-
42
- 4. **Commit and merge to `main`.** Confirm the published version:
43
- ```bash
44
- gh api repos/rekursiv-ai/codedoctor/contents/pyproject.toml --jq .content | base64 -d | grep '^version'
45
- ```
46
-
47
- 5. **Cut the release** (this triggers the PyPI publish):
30
+ 3. **Cut the release** from a `main` whose `package-validation` passed
31
+ (this triggers the PyPI publish):
48
32
  ```bash
49
33
  gh release create vX.Y.Z --repo rekursiv-ai/codedoctor --title "vX.Y.Z" --generate-notes
50
34
  ```
51
35
 
52
- 6. **Watch the workflow:**
36
+ 4. **Watch the workflow:**
53
37
  ```bash
54
38
  gh run watch --repo rekursiv-ai/codedoctor $(gh run list --repo rekursiv-ai/codedoctor --workflow publish-pypi.yml --limit 1 --json databaseId --jq '.[0].databaseId')
55
39
  ```
56
40
 
57
- 7. **Confirm it's live:**
41
+ 5. **Confirm it's live:**
58
42
  ```bash
59
43
  curl -s https://pypi.org/pypi/codedoctor/json | jq -r '.info.version' # should print X.Y.Z
60
44
  ```
@@ -64,15 +48,17 @@ which builds, validates, and uploads to PyPI via OIDC trusted publishing
64
48
 
65
49
  - **`invalid-publisher`** ("valid token, but no corresponding
66
50
  publisher") — the trusted publisher isn't registered or doesn't match.
67
- Do step 1, then re-run: `gh workflow run publish-pypi.yml --repo rekursiv-ai/codedoctor`.
51
+ Do step 1, then re-run on the tag:
52
+ `gh workflow run publish-pypi.yml --repo rekursiv-ai/codedoctor --ref vX.Y.Z`.
68
53
 
69
- - **Transient PyPI failure** — re-run without a new tag:
70
- `gh workflow run publish-pypi.yml --repo rekursiv-ai/codedoctor`.
54
+ - **Transient PyPI failure** — re-run on the tag, not `main` (which builds a
55
+ dev version): `gh workflow run publish-pypi.yml --repo rekursiv-ai/codedoctor --ref vX.Y.Z`.
71
56
 
72
57
  - **Must ship now, publishing still broken** — upload directly with the
73
58
  project's API token (`rekursiv-ai`-owned, e.g. `$PYPI_TOKEN_WORK`; a
74
59
  personal token can't publish `codedoctor`):
75
60
  ```bash
61
+ git checkout vX.Y.Z
76
62
  uv build --out-dir dist
77
63
  uv run --with twine twine check dist/codedoctor-X.Y.Z*
78
64
  uv run --with twine twine upload dist/codedoctor-X.Y.Z* -u __token__ -p "$PYPI_TOKEN_WORK"
@@ -181,7 +181,10 @@ def hook_config(text: str, *, notebooks: bool = False) -> str:
181
181
  }
182
182
  for repo in _hook_repos()
183
183
  ]
184
- text = _upgrade_hooks(text, expected=expected)
184
+ text = _replace_owned_hooks(
185
+ _upgrade_hooks(text, expected=expected),
186
+ expected=expected,
187
+ )
185
188
  document = from_plain(
186
189
  yaml.safe_load(text),
187
190
  dict[str, object],
@@ -275,7 +278,7 @@ def _upgrade_hooks(text: str, *, expected: list[dict[str, object]]) -> str:
275
278
  values["id"] = "codedoctor-lint"
276
279
  name = fields.get("name")
277
280
  if isinstance(name, ScalarNode) and name.value == "houselint":
278
- values["name"] = "codedoctor lint"
281
+ values["name"] = "codedoctor-lint"
279
282
  for key, value in values.items():
280
283
  scalar = fields[key]
281
284
  assert isinstance(scalar, ScalarNode)
@@ -296,6 +299,118 @@ def _upgrade_hooks(text: str, *, expected: list[dict[str, object]]) -> str:
296
299
  return text
297
300
 
298
301
 
302
+ # Codedoctor owns every field of its hooks but `args` (`_hook_identity`), so a hook an
303
+ # older release wrote is rewritten to this release's definition. Refusing instead left
304
+ # every client of 0.1.5 unable to install 0.1.6 (2026-11-18). Hooks pair by repository
305
+ # and id, in order, since one id may run twice (ruff-format before and after the fix).
306
+ def _replace_owned_hooks(text: str, *, expected: list[dict[str, object]]) -> str:
307
+ """Rewrite in place each Codedoctor hook whose definition differs, keeping `args`."""
308
+ wanted: dict[
309
+ tuple[object, object],
310
+ list[tuple[dict[str, object], dict[str, object]]],
311
+ ]
312
+ wanted = {}
313
+ for repo in expected:
314
+ for hook in from_plain(repo["hooks"], list[dict[str, object]]):
315
+ wanted.setdefault((repo["repo"], hook["id"]), []).append((repo, hook))
316
+ seen: dict[tuple[object, object], int] = {}
317
+ changes: dict[int, tuple[int, str]] = {}
318
+ for repo_node in _block_repos(text):
319
+ repo_fields = _scalar_fields(repo_node)
320
+ hooks = {
321
+ key.value: value
322
+ for key, value in repo_node.value
323
+ if isinstance(key, ScalarNode)
324
+ }.get("hooks")
325
+ if "repo" not in repo_fields or not isinstance(hooks, SequenceNode):
326
+ continue
327
+ for hook_node in hooks.value:
328
+ if not isinstance(hook_node, MappingNode) or hook_node.flow_style:
329
+ continue
330
+ present = from_plain(
331
+ yaml.safe_load(_node_text(text, hook_node)),
332
+ dict[str, object],
333
+ )
334
+ key = (repo_fields["repo"].value, present.get("id"))
335
+ index = seen.get(key, 0)
336
+ seen[key] = index + 1
337
+ if index >= len(wanted.get(key, [])):
338
+ continue
339
+ owner, hook = wanted[key][index]
340
+ for field, value in owner.items():
341
+ scalar = repo_fields.get(field)
342
+ if (
343
+ isinstance(value, str)
344
+ and scalar is not None
345
+ and scalar.value != value
346
+ ):
347
+ changes[scalar.start_mark.index] = (
348
+ scalar.end_mark.index,
349
+ json.dumps(value),
350
+ )
351
+ replacement = {k: v for k, v in hook.items() if k != "args"}
352
+ if "args" in present:
353
+ replacement["args"] = present["args"]
354
+ if replacement != present:
355
+ changes[hook_node.start_mark.index] = _hook_text(
356
+ text,
357
+ node=hook_node,
358
+ hook=replacement,
359
+ )
360
+ for start, (end, value) in sorted(changes.items(), reverse=True):
361
+ text = text[:start] + value + text[end:]
362
+ return text
363
+
364
+
365
+ def _block_repos(text: str) -> list[MappingNode]:
366
+ """Return the block-style repository mappings under the top-level `repos`."""
367
+ loader = yaml.SafeLoader(text)
368
+ try:
369
+ tree = loader.get_single_node()
370
+ finally:
371
+ loader.dispose()
372
+ if not isinstance(tree, MappingNode):
373
+ return []
374
+ repos = {
375
+ key.value: value for key, value in tree.value if isinstance(key, ScalarNode)
376
+ }.get("repos")
377
+ if not isinstance(repos, SequenceNode) or repos.flow_style:
378
+ return []
379
+ return [
380
+ node
381
+ for node in repos.value
382
+ if isinstance(node, MappingNode) and not node.flow_style
383
+ ]
384
+
385
+
386
+ def _scalar_fields(node: MappingNode) -> dict[str, ScalarNode]:
387
+ """Return a mapping's scalar-valued fields by key."""
388
+ return {
389
+ key.value: value
390
+ for key, value in node.value
391
+ if isinstance(key, ScalarNode) and isinstance(value, ScalarNode)
392
+ }
393
+
394
+
395
+ def _node_text(text: str, node: MappingNode) -> str:
396
+ """Return a block mapping's source, its first line dedented to match the rest."""
397
+ start, end = node.start_mark, node.value[-1][1].end_mark
398
+ return " " * int(start.column) + text[int(start.index) : int(end.index)]
399
+
400
+
401
+ def _hook_text(
402
+ text: str,
403
+ *,
404
+ node: MappingNode,
405
+ hook: dict[str, object],
406
+ ) -> tuple[int, str]:
407
+ """Return the end index and block YAML replacing ``node`` with ``hook``."""
408
+ end = int(node.value[-1][1].end_mark.index)
409
+ dumped = yaml.safe_dump(hook, sort_keys=False, width=1 << 30)
410
+ body = textwrap.indent(dumped, " " * int(node.start_mark.column)).lstrip(" ")
411
+ return end, body if text[end - 1] == "\n" else body.rstrip("\n")
412
+
413
+
299
414
  def _hook_identity(
300
415
  repo: dict[str, object],
301
416
  *,
@@ -307,7 +307,7 @@ def test_hook_config_upgrades_stage_commands_without_losing_custom_arguments(
307
307
  hooks: list[dict[str, object]] = [
308
308
  {
309
309
  "id": "codedoctor-lint",
310
- "name": "codedoctor lint",
310
+ "name": "codedoctor-lint",
311
311
  "entry": "uv run python -m codedoctor lint",
312
312
  "language": "system",
313
313
  },
@@ -427,15 +427,85 @@ def test_hook_migration_visits_recursive_metadata_once() -> None:
427
427
  assert install._upgrade_hooks(original, expected=[]) == original
428
428
 
429
429
 
430
- def test_hook_config_rejects_conflicting_hook_before_writing() -> None:
430
+ def test_hook_config_rejects_a_hook_moved_to_another_repository() -> None:
431
431
  original = (
432
- "repos:\n - repo: local\n hooks:\n - id: ty-check\n"
433
- " entry: different\n"
432
+ "repos:\n - repo: https://example.invalid/mine\n rev: v1\n hooks:\n"
433
+ " - id: ty-check\n entry: different\n"
434
434
  )
435
435
  with pytest.raises(ValueError, match="ty-check"):
436
436
  install.hook_config(original)
437
437
 
438
438
 
439
+ def test_hook_config_upgrades_owned_hooks_keeping_project_arguments(
440
+ monkeypatch: pytest.MonkeyPatch,
441
+ ) -> None:
442
+ defaults: list[dict[str, object]] = [
443
+ {
444
+ "repo": "checks",
445
+ "rev": "v2",
446
+ "hooks": [
447
+ {"id": "size", "exclude": "new", "args": ["--maxkb=800"]},
448
+ {"id": "fmt", "name": "fmt-pre", "stages": ["pre-commit"]},
449
+ {"id": "fmt", "name": "fmt-mid"},
450
+ {"id": "fmt", "name": "fmt", "args": ["--check"]},
451
+ ],
452
+ },
453
+ ]
454
+ monkeypatch.setattr(install, "_hook_repos", lambda: defaults)
455
+ original = (
456
+ "# Keep this comment.\nrepos:\n- repo: checks\n rev: v1 # Pinned.\n hooks:\n"
457
+ " - id: size\n exclude: |\n old\n args: [--maxkb=5000]\n"
458
+ " # Keep the project's hook.\n"
459
+ " - id: mine\n entry: mine\n"
460
+ " - id: fmt\n name: fmt-pre\n"
461
+ " - id: fmt\n name: old-mid\n"
462
+ " - id: fmt\n name: old\n"
463
+ )
464
+
465
+ configured = install.hook_config(original)
466
+
467
+ # A project that dropped an owned hook's `args` keeps them dropped.
468
+ assert yaml.safe_load(configured) == {
469
+ "repos": [
470
+ {
471
+ "repo": "checks",
472
+ "rev": "v2",
473
+ "hooks": [
474
+ {"id": "size", "exclude": "new", "args": ["--maxkb=5000"]},
475
+ {"id": "mine", "entry": "mine"},
476
+ {"id": "fmt", "name": "fmt-pre", "stages": ["pre-commit"]},
477
+ {"id": "fmt", "name": "fmt-mid"},
478
+ {"id": "fmt", "name": "fmt"},
479
+ ],
480
+ },
481
+ ],
482
+ }
483
+ assert "# Keep this comment." in configured
484
+ assert "# Keep the project's hook." in configured
485
+ assert install.hook_config(configured) == configured
486
+
487
+
488
+ def test_replacing_owned_hooks_skips_what_it_cannot_rewrite_in_place() -> None:
489
+ expected: list[dict[str, object]] = [
490
+ {
491
+ "repo": "checks",
492
+ "hooks": [{"id": "a", "name": "new"}, {"id": "b", "name": "new"}],
493
+ },
494
+ ]
495
+ original = (
496
+ "repos:\n"
497
+ "- hooks: [{id: a, name: old}]\n"
498
+ "- repo: bare\n"
499
+ "- repo: checks\n hooks:\n"
500
+ " - {id: a, name: old}\n"
501
+ " - id: b\n name: old\n"
502
+ )
503
+
504
+ replaced = install._replace_owned_hooks(original, expected=expected)
505
+
506
+ assert replaced == original.replace(" name: old\n", " name: new\n")
507
+
508
+
439
509
  _PACKAGED_HOOKS = """\
440
510
  repos:
441
511
  - repo: local
@@ -2201,8 +2201,9 @@ def _mutant_function_name(
2201
2201
 
2202
2202
  def _failure_guide() -> None:
2203
2203
  sys.stdout.flush()
2204
+ guide = _THIS.with_name("README.md").resolve().as_uri()
2204
2205
  sys.stderr.write(
2205
- f"mutation: guide: {_THIS.with_name('README.md').resolve().as_uri()}\n",
2206
+ f"mutation: FAILED: read {guide} before changing code or tests\n",
2206
2207
  )
2207
2208
 
2208
2209
 
@@ -3564,7 +3564,7 @@ def test_an_unparsable_paired_test_fails_its_file_in_one_line(
3564
3564
  assert capsys.readouterr().err == (
3565
3565
  "[mutated] 1/1 pkg/mod.py: FAILED\n"
3566
3566
  "mutation: pkg/mod.py: t_test.py:1: invalid syntax\n"
3567
- f"mutation: guide: {Path(mutated.__file__).with_name('README.md').resolve().as_uri()}\n"
3567
+ f"mutation: FAILED: read {Path(mutated.__file__).with_name('README.md').resolve().as_uri()} before changing code or tests\n"
3568
3568
  )
3569
3569
  assert snapshot_calls == []
3570
3570
 
@@ -3600,7 +3600,7 @@ def test_main_fails_when_the_template_cannot_be_copied(
3600
3600
  assert mutated.main() == 1
3601
3601
  assert capsys.readouterr().err == (
3602
3602
  f"mutation: cannot prepare the snapshot: {error}\n"
3603
- f"mutation: guide: {Path(mutated.__file__).with_name('README.md').resolve().as_uri()}\n"
3603
+ f"mutation: FAILED: read {Path(mutated.__file__).with_name('README.md').resolve().as_uri()} before changing code or tests\n"
3604
3604
  )
3605
3605
 
3606
3606
 
@@ -5540,7 +5540,7 @@ def test_remainder_requires_retained_identity(
5540
5540
  assert run_calls == []
5541
5541
  assert capsys.readouterr().err == (
5542
5542
  "mutation: cannot select functions: remainder manifest must include retained identity\n"
5543
- f"mutation: guide: {Path(mutated.__file__).with_name('README.md').resolve().as_uri()}\n"
5543
+ f"mutation: FAILED: read {Path(mutated.__file__).with_name('README.md').resolve().as_uri()} before changing code or tests\n"
5544
5544
  )
5545
5545
 
5546
5546
 
@@ -5571,7 +5571,7 @@ def test_remainder_cannot_be_combined_with_paths(
5571
5571
  assert run_calls == []
5572
5572
  assert capsys.readouterr().err.endswith(
5573
5573
  "error: remainder manifests cannot be combined with paths\n"
5574
- f"mutation: guide: {Path(mutated.__file__).with_name('README.md').resolve().as_uri()}\n",
5574
+ f"mutation: FAILED: read {Path(mutated.__file__).with_name('README.md').resolve().as_uri()} before changing code or tests\n",
5575
5575
  )
5576
5576
 
5577
5577
 
@@ -5863,7 +5863,9 @@ def test_arguments_do_not_require_mutmut_configuration(
5863
5863
  assert completed.stderr.count(guide) == (1 if status else 0)
5864
5864
  if status:
5865
5865
  assert "unrecognized arguments: --invalid-packaging-proof" in completed.stderr
5866
- assert completed.stderr.endswith(f"mutation: guide: {guide}\n")
5866
+ assert completed.stderr.endswith(
5867
+ f"mutation: FAILED: read {guide} before changing code or tests\n",
5868
+ )
5867
5869
 
5868
5870
 
5869
5871
  def test_failure_guide_follows_buffered_diagnostics(
@@ -5882,7 +5884,7 @@ def test_failure_guide_follows_buffered_diagnostics(
5882
5884
  stdout.flush()
5883
5885
  guide = Path(mutated.__file__).with_name("README.md").resolve().as_uri()
5884
5886
  assert output.getvalue().decode() == (
5885
- f"survivor diagnostic\nmutation: guide: {guide}\n"
5887
+ f"survivor diagnostic\nmutation: FAILED: read {guide} before changing code or tests\n"
5886
5888
  )
5887
5889
 
5888
5890
 
@@ -4,7 +4,6 @@
4
4
 
5
5
  [project]
6
6
  name = "codedoctor"
7
- version = "0.1.6"
8
7
  description = "Pre-commit gates that run each heavy check once, sized to the machine."
9
8
  readme = "README.md"
10
9
  requires-python = ">=3.12"
@@ -34,6 +33,7 @@ dependencies = [
34
33
  "pyyaml>=6.0.3",
35
34
  "ruamel-yaml>=0.18.6",
36
35
  ]
36
+ dynamic = ["version"]
37
37
 
38
38
  [project.scripts]
39
39
  codedoctor = "codedoctor.cli:main"
@@ -150,7 +150,7 @@ Issues = "https://github.com/rekursiv-ai/codedoctor/issues"
150
150
  Changelog = "https://github.com/rekursiv-ai/codedoctor/releases"
151
151
 
152
152
  [build-system]
153
- requires = ["hatchling"]
153
+ requires = ["hatchling", "hatch-vcs"]
154
154
  build-backend = "hatchling.build"
155
155
 
156
156
  [tool.hatch.build.targets.wheel]
@@ -164,6 +164,9 @@ artifacts = ["codedoctor/py.typed"]
164
164
  [tool.hatch.build.targets.sdist]
165
165
  exclude = [".github/**", ".codespell-ignore"]
166
166
 
167
+ [tool.hatch.version]
168
+ source = "vcs"
169
+
167
170
  [tool.pytest.ini_options]
168
171
  python_files = ["*_test.py", "test_*.py"]
169
172
  markers = [
@@ -255,7 +255,6 @@ wheels = [
255
255
 
256
256
  [[package]]
257
257
  name = "codedoctor"
258
- version = "0.1.6"
259
258
  source = { editable = "." }
260
259
  default-groups = ["cuda", "dev"]
261
260
  dependencies = [
@@ -430,7 +429,7 @@ requires-dist = [
430
429
  { name = "typing-extensions", specifier = ">=4.16.0" },
431
430
  { name = "wrapt", marker = "extra == 'mutation'", specifier = ">=2.5.2" },
432
431
  ]
433
- provides-extras = ["cpu", "cu126", "cu128", "cu130", "cu132", "cu134", "coverage", "mutation", "notebook"]
432
+ provides-extras = ["coverage", "cpu", "cu126", "cu128", "cu130", "cu132", "cu134", "mutation", "notebook"]
434
433
 
435
434
  [package.metadata.requires-dev]
436
435
  cuda = [
@@ -1998,8 +1997,8 @@ wheels = [
1998
1997
 
1999
1998
  [[package]]
2000
1999
  name = "rekursiv-ai-typings"
2001
- version = "0.1.18"
2002
- source = { git = "https://github.com/rekursiv-ai/typings?branch=main#14727d63f6b52b8c423f04257511cc6149449cc6" }
2000
+ version = "0.1.19"
2001
+ source = { git = "https://github.com/rekursiv-ai/typings?branch=main#44c0760d182696a2a5f900beb351401ec856b6b1" }
2003
2002
 
2004
2003
  [[package]]
2005
2004
  name = "requests"
@@ -2495,23 +2494,23 @@ wheels = [
2495
2494
 
2496
2495
  [[package]]
2497
2496
  name = "treekle"
2498
- version = "0.4.4"
2499
- source = { registry = "https://pypi.org/simple" }
2500
- sdist = { url = "https://files.pythonhosted.org/packages/bb/44/90e352f20518cd9097a689a6357d72baab4707cd4551bfb9cff15db0e457/treekle-0.4.4.tar.gz", hash = "sha256:8c22d546a94f8515905643b81fe5a87cd5c2a126d81f97bb41c9e51a170ae682", size = 382386, upload-time = "2026-11-06T19:09:38.422Z" }
2501
- wheels = [
2502
- { url = "https://files.pythonhosted.org/packages/57/ee/efb9d475a2b89a1ec88fb37339ee7eb62d6d42b9a5b9d55c557b4eda12bb/treekle-0.4.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3120384c39678a2705767de4d0d1c9dff159156f89c9b704c025ac00b77dd7b9", size = 1094289, upload-time = "2026-11-06T19:09:14.374Z" },
2503
- { url = "https://files.pythonhosted.org/packages/39/79/9243cd5701c5d32d3b11983e0f708d3ef1ff6c2cad4e038fdc5cda0091f6/treekle-0.4.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ebc39df6e02b28d5530bdfc3532abbd561b37cde8a00dbfd96e15110b1884bc", size = 1027772, upload-time = "2026-11-06T19:09:16.08Z" },
2504
- { url = "https://files.pythonhosted.org/packages/b3/31/510b3b388a99f8403373f10302b3956cb07ef98ab2261dcbd5154ac10f64/treekle-0.4.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f8674221b736b673deeb5d1939b59b26ab262ad0a51884ab9aa729525d337c78", size = 1037447, upload-time = "2026-11-06T19:09:17.616Z" },
2505
- { url = "https://files.pythonhosted.org/packages/9f/17/203d8221f0c1846f314de07ed261de6dd426fabdbd02a8fda0b39630d46d/treekle-0.4.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1892133b0af16e6fbb7986f9378f429f9451d62f6692df46ef93d147981dcb47", size = 1091878, upload-time = "2026-11-06T19:09:19.188Z" },
2506
- { url = "https://files.pythonhosted.org/packages/06/a8/bc817836090f0faeb943f70e4861f0503000c5fc8fbb85de7d904a7e853b/treekle-0.4.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:3f79c47ee2802a1e13e15f89f5a5e25c8e11c663fc79999a9e602c7e298a1682", size = 1092412, upload-time = "2026-11-06T19:09:22.566Z" },
2507
- { url = "https://files.pythonhosted.org/packages/df/d3/0168139b04e21faf9b825337d0c2ad0dbf92e9c4dc98c1f17af02274536c/treekle-0.4.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:097ae02f6a46309d9443fda41fb0eb59fa9a459649aa5f01c9c012b97bfd3474", size = 1024885, upload-time = "2026-11-06T19:09:23.89Z" },
2508
- { url = "https://files.pythonhosted.org/packages/36/ab/7b389edd5dd02ef6fb0f806fc0070880532228c664ba06753587d8c07acd/treekle-0.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:dad3edfcef20c91733849264b03edd6cada0af95e9c79d1cc5fd850c1fde6cbc", size = 1034726, upload-time = "2026-11-06T19:09:25.357Z" },
2509
- { url = "https://files.pythonhosted.org/packages/c5/56/d930d68bbb03088c3e6ea109c4ba46b2c3983ab5ef0303af714e343c0af6/treekle-0.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:78c5d4cb0c399c4d35ee6a07f5e7139e83d0c8e54f71cf5df94b20510baa552f", size = 1091599, upload-time = "2026-11-06T19:09:26.75Z" },
2510
- { url = "https://files.pythonhosted.org/packages/8c/9d/4ef13055431a11fa122bd29f4c7c7cb3e323eec67b2b3065c6e644a350ec/treekle-0.4.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:2b5e8c625e7f44e6bcd19d2138261fc99ec211180b0b425b6a3bd97d1460b7eb", size = 850627, upload-time = "2026-11-06T19:09:29.856Z" },
2511
- { url = "https://files.pythonhosted.org/packages/c5/dd/e653053988d037e85ce7924e3c9c43144e7e7e33d3262d7883ab1e1bc275/treekle-0.4.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7adda4abb1538f4abc3ee7e9124b9d8853c567a8ba79e5413d271bfeed8c83", size = 807815, upload-time = "2026-11-06T19:09:31.352Z" },
2512
- { url = "https://files.pythonhosted.org/packages/92/3d/105927ba5739e654f43a8251e21046072f179f9f8a009208b895bed8c54d/treekle-0.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d10eda15c10a18d45fb58c6a5bf70d89261f17ace46cfcee32ef83988191827e", size = 822172, upload-time = "2026-11-06T19:09:32.796Z" },
2513
- { url = "https://files.pythonhosted.org/packages/5f/56/0125a941b8f52d35db8a660eef8b1cd59c1fe53d6c8f30cc0da6d9d23a48/treekle-0.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:00ea21cc30d0b1e2b9e3d373c55b84380cc06628784e68c499d19d39fc809dda", size = 856646, upload-time = "2026-11-06T19:09:34.298Z" },
2514
- { url = "https://files.pythonhosted.org/packages/c7/c2/5eb8c6814736f93415153d6c35c80d1f27f308172a7e5253a4692853d00a/treekle-0.4.4-py3-none-any.whl", hash = "sha256:66d8e7a7dced055722b7f63060d79fbe01b74f1565378fa662a83fdb6ee319e0", size = 72801, upload-time = "2026-11-06T19:09:37.232Z" },
2497
+ version = "0.4.5"
2498
+ source = { registry = "https://pypi.org/simple" }
2499
+ sdist = { url = "https://files.pythonhosted.org/packages/a6/4a/e4d4a1712e0809c1201da16a39926487997ae3f484eef5ffc3cd4783f225/treekle-0.4.5.tar.gz", hash = "sha256:b4561f89ef162dd38da7b1b88a954de17485759808b1b18a2749c5a5ecada428", size = 389509, upload-time = "2026-11-19T06:22:38.045Z" }
2500
+ wheels = [
2501
+ { url = "https://files.pythonhosted.org/packages/e0/b5/58ccc8b2952a7926c2de8f33d345ee86aee05f7f6f5629561d46dab3dbba/treekle-0.4.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:b2b0c1151ec327f2391874df9212b27db002c33f6f85cdf9d938b9ef964257f9", size = 1097047, upload-time = "2026-11-19T06:22:13.247Z" },
2502
+ { url = "https://files.pythonhosted.org/packages/82/fb/2cbe2185d6bd2fbc3ef2eecb766d853fc73d1da3c86aa3afe3430118ce0c/treekle-0.4.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:decf954918addec1e7527227b2df7b1a058238e80ef2893dd8f45411dfb06584", size = 1030159, upload-time = "2026-11-19T06:22:15.219Z" },
2503
+ { url = "https://files.pythonhosted.org/packages/46/5b/f501402b02395cb55ca97f5e826509c3223d56dcd4cf6590cece5144204b/treekle-0.4.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b7b6eab9d0e80777f978fbbaad6495f3c9e9e1daf480e6c14e8b7eacad0c731c", size = 1042332, upload-time = "2026-11-19T06:22:16.707Z" },
2504
+ { url = "https://files.pythonhosted.org/packages/70/23/a30f711dd9e325ed8bdead5a92fc284962c9c6059b1a733aaf32da580e45/treekle-0.4.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b5704bcdbb71a398c391150fadf6cae25c2c8bcb6d870912633f10b37a00e369", size = 1095869, upload-time = "2026-11-19T06:22:18.41Z" },
2505
+ { url = "https://files.pythonhosted.org/packages/5c/f5/2c083708879bc81d5623fb218f2b5ed2e7c562d8b8ff73bdd6c984842a10/treekle-0.4.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:506623b4ca1ee10a7d6060d210e3389611ac111b4ffe5be18f107ed638b442a3", size = 1094913, upload-time = "2026-11-19T06:22:21.733Z" },
2506
+ { url = "https://files.pythonhosted.org/packages/32/cb/d95cec1f9ac104be4aa9c317ba5692c0ac0468419e37b51616684265f9ed/treekle-0.4.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5419a2e5c24320b2a83be321d0d5693596e6c7bf1ee8d659723c0ef14daad3c2", size = 1026830, upload-time = "2026-11-19T06:22:23.185Z" },
2507
+ { url = "https://files.pythonhosted.org/packages/16/9f/bf0ee91fed03e43acb06e6184e69a380cdb9b3e7d283b68b446ea6e52d03/treekle-0.4.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6e8cbbc119aae5fd0a1825062d355fd15ba66ba283cd59cf6b1a1b65ccb0d5ef", size = 1040277, upload-time = "2026-11-19T06:22:24.865Z" },
2508
+ { url = "https://files.pythonhosted.org/packages/86/c5/43b0d848ed8f2f05b72ceb59d7866ad3468e994213dc5db95b9c87a14b29/treekle-0.4.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f9192cecee3d9a4b83625a1d020b3a7194e6a0500a829380c39e3f388de4030d", size = 1095840, upload-time = "2026-11-19T06:22:26.374Z" },
2509
+ { url = "https://files.pythonhosted.org/packages/3d/87/0873de40129933f90df52121435d62c3c1ea2c2e6260a5a956cba073f49d/treekle-0.4.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:8ac9fa68e94313bb276e49146e1412dfbc7e4ab70b6b223d0a5a35d7d7329d6f", size = 852988, upload-time = "2026-11-19T06:22:29.525Z" },
2510
+ { url = "https://files.pythonhosted.org/packages/7f/5e/550195971e050e79458413495258db9754d1043b3d2dcf2f2a556ad49f29/treekle-0.4.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:27efaa349f001276c2162a4e1a8198e858d926d603e3b7d6eb79befbac70dbfb", size = 810529, upload-time = "2026-11-19T06:22:31.112Z" },
2511
+ { url = "https://files.pythonhosted.org/packages/dc/5a/00a9aad6afd39a2f845fc971228c9b32201e9addbb299837981bca5bbebf/treekle-0.4.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2d310100378692722504134afb92b27cddf226ddccece1b6fc4af54621478c61", size = 824861, upload-time = "2026-11-19T06:22:32.603Z" },
2512
+ { url = "https://files.pythonhosted.org/packages/60/44/b67260c1a91feb4730581d18d43960d9be53fce1a39fa74a46163cacacf1/treekle-0.4.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2ae1e120e01b42987a554e70348f99da4a97bb73a2a57524201fb6ed2571fdaa", size = 860138, upload-time = "2026-11-19T06:22:34.095Z" },
2513
+ { url = "https://files.pythonhosted.org/packages/4c/86/2e48a164341f2f215276bdd2604d0d287a55a80f323dc8d0dd512ce2749d/treekle-0.4.5-py3-none-any.whl", hash = "sha256:bee47cfcc8a1a2ff045c9a9d4ab5af447dff3a95052ab67f830b78fa47a45fd3", size = 75367, upload-time = "2026-11-19T06:22:36.747Z" },
2515
2514
  ]
2516
2515
 
2517
2516
  [[package]]
@@ -1,72 +0,0 @@
1
- # Changelog
2
-
3
- All notable codedoctor changes are documented here. This project follows
4
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
-
6
- ## 0.1.6 - 2026-11-18
7
-
8
- ### Added
9
-
10
- - `biome-check` hook formats and lints TypeScript, JavaScript and CSS;
11
- `codedoctor install` writes a `biome.json` when the project has none.
12
- - `codedoctor cargo` stage for Rust projects.
13
-
14
- ### Changed
15
-
16
- - Update lint rules, mutation testing, typecheck, and affected-file selection.
17
-
18
- ## 0.1.5 - 2026-11-08
19
-
20
- ### Changed
21
-
22
- - Run every stage through `codedoctor <stage>`.
23
- - Rename houselint to `codedoctor lint` and migrate its configuration.
24
- - Require `codedoctor install --notebooks` to add notebook tooling.
25
- - Install only the pre-commit Git hook by default; pre-push remains opt-in.
26
- - Let OpenBLAS detect the host's usable CPU instructions.
27
-
28
- ### Fixed
29
-
30
- - Preserve long hook commands, block scalars, arguments, and YAML aliases
31
- during command migration.
32
- - Cover projects with dynamic names when generating checker policy.
33
-
34
- ## 0.1.4 - 2026-11-07
35
-
36
- ### Changed
37
-
38
- - Provision pinned, checksummed CodeGraph and skip indexing when unavailable.
39
- - Generate checker policy from packaged defaults, preserving project overrides.
40
- - Check for stale generated configuration.
41
- - Require explicit project settings for user-directory lint rules.
42
- - Apply coverage floors to sources owned by changed tests.
43
-
44
- ### Fixed
45
-
46
- - Preserve leading whitespace in hook configuration.
47
- - Prove integer bounds for NumPy `arange` defaults.
48
- - Restrict mutation's vendored-tree filter to stub directories.
49
- - Fix mutant import shadowing.
50
-
51
- ## 0.1.3 - 2026-11-07
52
-
53
- ### Changed
54
-
55
- - `mutation` findings are advisory: they print and the run exits 0. `--blocking`,
56
- or `PRECOMMIT_MUTATION_BLOCKING` set to a positive integer, makes any finding
57
- exit 1 as before. A run that cannot start still exits 1.
58
- - houselint's `cli-shape` wants a polyglot launcher to run `python3 -P "$0"` (or
59
- `python3 -P -m MODULE`), and its fix adds the `-P`. Without it Python puts the
60
- launcher's folder first on `sys.path`, where a module beside it, such as a
61
- `types.py`, shadows the standard library's.
62
-
63
- ## 0.1.2 - 2026-10-22
64
-
65
- ### Added
66
-
67
- - The pre-commit gates: `gate` (spool, `run`, `threaded`), `typecheck`
68
- (ty, pyrefly, basedpyright), `testing` (paired tests and pytest tiers),
69
- `coverage_floor`, `mutation`, `lint` (houselint), `assert_isinstance`,
70
- `affected`, `nbstripout` and `selected_nodeids`.
71
- - A `coverage` extra for the `coverage_floor` gate, which imports `coverage`.
72
- - The `mutation` extra requires `pytest`, which its pytest plugins import.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes