bite-check 1.0.3__tar.gz → 1.0.4__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.
- {bite_check-1.0.3 → bite_check-1.0.4}/PKG-INFO +12 -5
- {bite_check-1.0.3 → bite_check-1.0.4}/README.md +11 -4
- {bite_check-1.0.3 → bite_check-1.0.4}/ask.py +3 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/PKG-INFO +12 -5
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/SOURCES.txt +19 -1
- {bite_check-1.0.3 → bite_check-1.0.4}/live.py +2 -1
- {bite_check-1.0.3 → bite_check-1.0.4}/pyproject.toml +1 -1
- {bite_check-1.0.3 → bite_check-1.0.4}/recent.py +436 -34
- {bite_check-1.0.3 → bite_check-1.0.4}/repo.py +41 -7
- bite_check-1.0.4/tests/test_apply_in_nested_copy.py +28 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_comeback.py +28 -0
- bite_check-1.0.4/tests/test_demo_name_message.py +26 -0
- bite_check-1.0.4/tests/test_flaky_baseline.py +34 -0
- bite_check-1.0.4/tests/test_good_failure_wording.py +37 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_jobs_memory.py +15 -0
- bite_check-1.0.4/tests/test_keep_output.py +40 -0
- bite_check-1.0.4/tests/test_last_zero.py +42 -0
- bite_check-1.0.4/tests/test_missing_folder_message.py +28 -0
- bite_check-1.0.4/tests/test_no_test_command_help.py +46 -0
- bite_check-1.0.4/tests/test_node_copies.py +79 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_odd_inputs.py +8 -1
- bite_check-1.0.4/tests/test_own_tests_first.py +94 -0
- bite_check-1.0.4/tests/test_plural_commits.py +37 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_progress.py +1 -1
- bite_check-1.0.4/tests/test_rerun_failed_only.py +59 -0
- bite_check-1.0.4/tests/test_rerun_failed_only_other_languages.py +149 -0
- bite_check-1.0.4/tests/test_rewritten_later.py +54 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_shard.py +7 -0
- bite_check-1.0.4/tests/test_skipped_own_test.py +84 -0
- bite_check-1.0.4/tests/test_spelled_under_one_second.py +22 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_submodules.py +28 -0
- bite_check-1.0.4/tests/test_tests_already_red.py +57 -0
- bite_check-1.0.4/tests/test_type_declarations.py +31 -0
- bite_check-1.0.4/tests/test_utf8_output.py +27 -0
- bite_check-1.0.3/tests/test_node_copies.py +0 -26
- {bite_check-1.0.3 → bite_check-1.0.4}/LICENSE +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/dependency_links.txt +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/entry_points.txt +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/requires.txt +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.egg-info/top_level.txt +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_check.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/bite_mcp.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/setup.cfg +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_action.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_any_encoding.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_ask.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_bite_claim.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_bot.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_claim_command.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_comment_size.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_copy_names.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_deleted_files.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_doctests.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_fail_comment.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_first_run.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_go_other_systems.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_hang.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_huge_files.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_java_kotlin.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_json.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_later_test_near_tidy.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_live.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_mcp.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_merge_shards.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_most_wanted.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_names.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_no_pings.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_odd_repos.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_open_pr.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_passing_names.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_paste_paths.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_pr_checklist.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_publish_badge.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_run_from_anywhere.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_rust_doc_examples.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_rust_unit_tests.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_score.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_score_trend.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_self_check.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_selftest.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_settings_file.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_shallow.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_tricks.py +0 -0
- {bite_check-1.0.3 → bite_check-1.0.4}/tests/test_update.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bite-check
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Checks whether the "fixed" in your coding agent's recent commits is actually true.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/connabyss/bite
|
|
@@ -56,7 +56,14 @@ use one of those.) If your commits never say "fix", add `--any` to check every r
|
|
|
56
56
|
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
57
57
|
|
|
58
58
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
59
|
-
are small, and each one says where to look and when it's done. Comment on one to claim it.
|
|
59
|
+
are small, and each one says where to look and when it's done. Comment on one to claim it. Or try to
|
|
60
|
+
[fool Bite](https://github.com/connabyss/bite/issues/156): sneak a "fix" past it.
|
|
61
|
+
|
|
62
|
+
> **Bite does this:** takes each recent fix back out of a copy of your project, runs your tests, and tells you
|
|
63
|
+
> whether any test noticed. It never changes your files or pushes anything, and the free check costs nothing.
|
|
64
|
+
>
|
|
65
|
+
> **You decide that:** whether to add the missing test, or leave it because the change didn't need one (a rename,
|
|
66
|
+
> a tidy-up). A ✅ means a test would catch that fix breaking. It doesn't prove the code has no other bugs.
|
|
60
67
|
|
|
61
68
|
## Why you need this
|
|
62
69
|
|
|
@@ -305,7 +312,7 @@ jobs:
|
|
|
305
312
|
# install what your tests need here, e.g. for Python:
|
|
306
313
|
- uses: actions/setup-python@v7
|
|
307
314
|
- run: python -m pip install pytest -r requirements.txt
|
|
308
|
-
- uses: connabyss/bite@v1.0.
|
|
315
|
+
- uses: connabyss/bite@v1.0.4
|
|
309
316
|
```
|
|
310
317
|
|
|
311
318
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -319,7 +326,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
319
326
|
named `ANTHROPIC_API_KEY`, then:
|
|
320
327
|
|
|
321
328
|
```yaml
|
|
322
|
-
- uses: connabyss/bite@v1.0.
|
|
329
|
+
- uses: connabyss/bite@v1.0.4
|
|
323
330
|
with:
|
|
324
331
|
write-tests: true
|
|
325
332
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -436,7 +443,7 @@ jobs:
|
|
|
436
443
|
with:
|
|
437
444
|
fetch-depth: 0
|
|
438
445
|
# install what your tests need here, as in the pull request check
|
|
439
|
-
- uses: connabyss/bite@v1.0.
|
|
446
|
+
- uses: connabyss/bite@v1.0.4
|
|
440
447
|
with:
|
|
441
448
|
badge-branch: bite-badge
|
|
442
449
|
max-commits: 10
|
|
@@ -30,7 +30,14 @@ use one of those.) If your commits never say "fix", add `--any` to check every r
|
|
|
30
30
|
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
31
31
|
|
|
32
32
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
33
|
-
are small, and each one says where to look and when it's done. Comment on one to claim it.
|
|
33
|
+
are small, and each one says where to look and when it's done. Comment on one to claim it. Or try to
|
|
34
|
+
[fool Bite](https://github.com/connabyss/bite/issues/156): sneak a "fix" past it.
|
|
35
|
+
|
|
36
|
+
> **Bite does this:** takes each recent fix back out of a copy of your project, runs your tests, and tells you
|
|
37
|
+
> whether any test noticed. It never changes your files or pushes anything, and the free check costs nothing.
|
|
38
|
+
>
|
|
39
|
+
> **You decide that:** whether to add the missing test, or leave it because the change didn't need one (a rename,
|
|
40
|
+
> a tidy-up). A ✅ means a test would catch that fix breaking. It doesn't prove the code has no other bugs.
|
|
34
41
|
|
|
35
42
|
## Why you need this
|
|
36
43
|
|
|
@@ -279,7 +286,7 @@ jobs:
|
|
|
279
286
|
# install what your tests need here, e.g. for Python:
|
|
280
287
|
- uses: actions/setup-python@v7
|
|
281
288
|
- run: python -m pip install pytest -r requirements.txt
|
|
282
|
-
- uses: connabyss/bite@v1.0.
|
|
289
|
+
- uses: connabyss/bite@v1.0.4
|
|
283
290
|
```
|
|
284
291
|
|
|
285
292
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -293,7 +300,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
293
300
|
named `ANTHROPIC_API_KEY`, then:
|
|
294
301
|
|
|
295
302
|
```yaml
|
|
296
|
-
- uses: connabyss/bite@v1.0.
|
|
303
|
+
- uses: connabyss/bite@v1.0.4
|
|
297
304
|
with:
|
|
298
305
|
write-tests: true
|
|
299
306
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -410,7 +417,7 @@ jobs:
|
|
|
410
417
|
with:
|
|
411
418
|
fetch-depth: 0
|
|
412
419
|
# install what your tests need here, as in the pull request check
|
|
413
|
-
- uses: connabyss/bite@v1.0.
|
|
420
|
+
- uses: connabyss/bite@v1.0.4
|
|
414
421
|
with:
|
|
415
422
|
badge-branch: bite-badge
|
|
416
423
|
max-commits: 10
|
|
@@ -204,6 +204,9 @@ def verdict(c: dict) -> tuple:
|
|
|
204
204
|
who = f"commit {by['sha'][:8]} (\"{by['subject']}\")" if by else "a later commit"
|
|
205
205
|
if u == "undone since":
|
|
206
206
|
return "gap", "🔁 UNDONE BY A LATER COMMIT", f"It's gone from today's code: {who} put the old code back."
|
|
207
|
+
if u == "replaced since":
|
|
208
|
+
return "cant", "➖ REPLACED BY A LATER FIX", (f"{who[0].upper() + who[1:]} took it out with its tests and fixed "
|
|
209
|
+
"it another way, with tests of its own.")
|
|
207
210
|
if u == "reverted since":
|
|
208
211
|
return "cant", "➖ REVERTED ON PURPOSE", f"{who[0].upper() + who[1:]} reverted it on purpose, so there's nothing left to guard."
|
|
209
212
|
if u.startswith("closed since"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bite-check
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Checks whether the "fixed" in your coding agent's recent commits is actually true.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/connabyss/bite
|
|
@@ -56,7 +56,14 @@ use one of those.) If your commits never say "fix", add `--any` to check every r
|
|
|
56
56
|
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
57
57
|
|
|
58
58
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
59
|
-
are small, and each one says where to look and when it's done. Comment on one to claim it.
|
|
59
|
+
are small, and each one says where to look and when it's done. Comment on one to claim it. Or try to
|
|
60
|
+
[fool Bite](https://github.com/connabyss/bite/issues/156): sneak a "fix" past it.
|
|
61
|
+
|
|
62
|
+
> **Bite does this:** takes each recent fix back out of a copy of your project, runs your tests, and tells you
|
|
63
|
+
> whether any test noticed. It never changes your files or pushes anything, and the free check costs nothing.
|
|
64
|
+
>
|
|
65
|
+
> **You decide that:** whether to add the missing test, or leave it because the change didn't need one (a rename,
|
|
66
|
+
> a tidy-up). A ✅ means a test would catch that fix breaking. It doesn't prove the code has no other bugs.
|
|
60
67
|
|
|
61
68
|
## Why you need this
|
|
62
69
|
|
|
@@ -305,7 +312,7 @@ jobs:
|
|
|
305
312
|
# install what your tests need here, e.g. for Python:
|
|
306
313
|
- uses: actions/setup-python@v7
|
|
307
314
|
- run: python -m pip install pytest -r requirements.txt
|
|
308
|
-
- uses: connabyss/bite@v1.0.
|
|
315
|
+
- uses: connabyss/bite@v1.0.4
|
|
309
316
|
```
|
|
310
317
|
|
|
311
318
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -319,7 +326,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
319
326
|
named `ANTHROPIC_API_KEY`, then:
|
|
320
327
|
|
|
321
328
|
```yaml
|
|
322
|
-
- uses: connabyss/bite@v1.0.
|
|
329
|
+
- uses: connabyss/bite@v1.0.4
|
|
323
330
|
with:
|
|
324
331
|
write-tests: true
|
|
325
332
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -436,7 +443,7 @@ jobs:
|
|
|
436
443
|
with:
|
|
437
444
|
fetch-depth: 0
|
|
438
445
|
# install what your tests need here, as in the pull request check
|
|
439
|
-
- uses: connabyss/bite@v1.0.
|
|
446
|
+
- uses: connabyss/bite@v1.0.4
|
|
440
447
|
with:
|
|
441
448
|
badge-branch: bite-badge
|
|
442
449
|
max-commits: 10
|
|
@@ -16,6 +16,7 @@ bite_check.egg-info/requires.txt
|
|
|
16
16
|
bite_check.egg-info/top_level.txt
|
|
17
17
|
tests/test_action.py
|
|
18
18
|
tests/test_any_encoding.py
|
|
19
|
+
tests/test_apply_in_nested_copy.py
|
|
19
20
|
tests/test_ask.py
|
|
20
21
|
tests/test_bite_claim.py
|
|
21
22
|
tests/test_bot.py
|
|
@@ -24,31 +25,43 @@ tests/test_comeback.py
|
|
|
24
25
|
tests/test_comment_size.py
|
|
25
26
|
tests/test_copy_names.py
|
|
26
27
|
tests/test_deleted_files.py
|
|
28
|
+
tests/test_demo_name_message.py
|
|
27
29
|
tests/test_doctests.py
|
|
28
30
|
tests/test_fail_comment.py
|
|
29
31
|
tests/test_first_run.py
|
|
32
|
+
tests/test_flaky_baseline.py
|
|
30
33
|
tests/test_go_other_systems.py
|
|
34
|
+
tests/test_good_failure_wording.py
|
|
31
35
|
tests/test_hang.py
|
|
32
36
|
tests/test_huge_files.py
|
|
33
37
|
tests/test_java_kotlin.py
|
|
34
38
|
tests/test_jobs_memory.py
|
|
35
39
|
tests/test_json.py
|
|
40
|
+
tests/test_keep_output.py
|
|
41
|
+
tests/test_last_zero.py
|
|
36
42
|
tests/test_later_test_near_tidy.py
|
|
37
43
|
tests/test_live.py
|
|
38
44
|
tests/test_mcp.py
|
|
39
45
|
tests/test_merge_shards.py
|
|
46
|
+
tests/test_missing_folder_message.py
|
|
40
47
|
tests/test_most_wanted.py
|
|
41
48
|
tests/test_names.py
|
|
42
49
|
tests/test_no_pings.py
|
|
50
|
+
tests/test_no_test_command_help.py
|
|
43
51
|
tests/test_node_copies.py
|
|
44
52
|
tests/test_odd_inputs.py
|
|
45
53
|
tests/test_odd_repos.py
|
|
46
54
|
tests/test_open_pr.py
|
|
55
|
+
tests/test_own_tests_first.py
|
|
47
56
|
tests/test_passing_names.py
|
|
48
57
|
tests/test_paste_paths.py
|
|
58
|
+
tests/test_plural_commits.py
|
|
49
59
|
tests/test_pr_checklist.py
|
|
50
60
|
tests/test_progress.py
|
|
51
61
|
tests/test_publish_badge.py
|
|
62
|
+
tests/test_rerun_failed_only.py
|
|
63
|
+
tests/test_rerun_failed_only_other_languages.py
|
|
64
|
+
tests/test_rewritten_later.py
|
|
52
65
|
tests/test_run_from_anywhere.py
|
|
53
66
|
tests/test_rust_doc_examples.py
|
|
54
67
|
tests/test_rust_unit_tests.py
|
|
@@ -59,6 +72,11 @@ tests/test_selftest.py
|
|
|
59
72
|
tests/test_settings_file.py
|
|
60
73
|
tests/test_shallow.py
|
|
61
74
|
tests/test_shard.py
|
|
75
|
+
tests/test_skipped_own_test.py
|
|
76
|
+
tests/test_spelled_under_one_second.py
|
|
62
77
|
tests/test_submodules.py
|
|
78
|
+
tests/test_tests_already_red.py
|
|
63
79
|
tests/test_tricks.py
|
|
64
|
-
tests/
|
|
80
|
+
tests/test_type_declarations.py
|
|
81
|
+
tests/test_update.py
|
|
82
|
+
tests/test_utf8_output.py
|
|
@@ -141,7 +141,8 @@ def say(r: dict) -> str:
|
|
|
141
141
|
f"({r['hang']}).")
|
|
142
142
|
if s == "guarded":
|
|
143
143
|
who = f" ({r['caught']})" if r.get("caught") else ""
|
|
144
|
-
return f"Bite ✅ a test noticed: with the change to {files(r['code'])} taken out,
|
|
144
|
+
return (f"Bite ✅ a test noticed, good news: with the change to {files(r['code'])} taken out, a test "
|
|
145
|
+
f"failed{who}. That failure is the good result: if this change ever breaks, that test will warn you.")
|
|
145
146
|
if s == "tests_blind":
|
|
146
147
|
return (f"Bite ⚠️ the tests that came with this change ({files(r['test_code'])}) don't notice it: with the "
|
|
147
148
|
f"change to {files(r['code'])} taken out, they still pass. The \"fixed\" isn't proven yet.")
|