housebroken-cli 0.6.1__tar.gz → 0.6.2__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 (26) hide show
  1. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/PKG-INFO +1 -1
  2. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/pyproject.toml +1 -1
  3. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/comment-check.sh +13 -3
  4. housebroken_cli-0.6.2/src/housebroken/__init__.py +1 -0
  5. housebroken_cli-0.6.1/src/housebroken/__init__.py +0 -1
  6. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/.gitignore +0 -0
  7. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/LICENSE +0 -0
  8. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/README.md +0 -0
  9. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/bin/housebroken +0 -0
  10. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/hatch_build.py +0 -0
  11. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/branch-check.sh +0 -0
  12. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/check-ai-policy.sh +0 -0
  13. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/claim-check.sh +0 -0
  14. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/comment-census.sh +0 -0
  15. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/diff-defaults.sh +0 -0
  16. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/distinct-outside.sh +0 -0
  17. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/file-pr.sh +0 -0
  18. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/fork-hygiene.sh +0 -0
  19. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/inbox.sh +0 -0
  20. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/notes.sh +0 -0
  21. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/pr-sweep.sh +0 -0
  22. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/prior-art.sh +0 -0
  23. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/review.sh +0 -0
  24. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/verify-filed-pr.sh +0 -0
  25. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/skills/housebroken/SKILL.md +0 -0
  26. {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/src/housebroken/cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: housebroken-cli
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: Agent-written pull requests that do not make a mess in someone else's house.
5
5
  Project-URL: Repository, https://github.com/lenamonj/housebroken
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "housebroken-cli"
7
- version = "0.6.1"
7
+ version = "0.6.2"
8
8
  description = "Agent-written pull requests that do not make a mess in someone else's house."
9
9
  dynamic = ["readme"]
10
10
  license = "MIT"
@@ -118,11 +118,21 @@ while IFS= read -r f; do
118
118
 
119
119
  # An added comment line is refused unless a removed comment line in the same
120
120
  # hunk pays for it, or it is in the leading comment block of a new file whose
121
- # neighbours open with one.
122
- awk -F'\t' -v re="$re" -v hdr="$header_ok" -v file="$f" '
121
+ # neighbours open with one. Every added line between an added /* and its */
122
+ # is a comment, whatever it starts with.
123
+ blk=0
124
+ case "$re" in *'/[*]'*) blk=1 ;; esac
125
+ awk -F'\t' -v re="$re" -v hdr="$header_ok" -v file="$f" -v blk="$blk" '
123
126
  $1 == "-" { if ($4 ~ re) rem[$2]++; next }
124
127
  $1 == "+" {
125
- if ($4 ~ re) {
128
+ iscom = ($4 ~ re)
129
+ if (blk == 1) {
130
+ if ($3 != prev + 1) inblock = 0
131
+ prev = $3
132
+ if (inblock) { iscom = 1; if ($4 ~ /[*]\//) inblock = 0 }
133
+ else if ($4 ~ /^[[:space:]]*\/[*]/ && $4 !~ /[*]\//) inblock = 1
134
+ }
135
+ if (iscom) {
126
136
  if (rem[$2] > 0) { rem[$2]--; next }
127
137
  if (hdr == 1 && !code_seen) next
128
138
  text = $4; sub(/^[[:space:]]+/, "", text)
@@ -0,0 +1 @@
1
+ __version__ = "0.6.2"
@@ -1 +0,0 @@
1
- __version__ = "0.6.1"
File without changes