bite-check 1.0.2__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.2 → bite_check-1.0.4}/PKG-INFO +27 -13
- {bite_check-1.0.2 → bite_check-1.0.4}/README.md +26 -12
- {bite_check-1.0.2 → bite_check-1.0.4}/ask.py +3 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/PKG-INFO +27 -13
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/SOURCES.txt +21 -1
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/top_level.txt +1 -0
- bite_check-1.0.4/bite_check.py +17 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/live.py +2 -1
- {bite_check-1.0.2 → bite_check-1.0.4}/pyproject.toml +2 -2
- {bite_check-1.0.2 → bite_check-1.0.4}/recent.py +545 -50
- {bite_check-1.0.2 → 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.2 → 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.2 → 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.2 → 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.2 → bite_check-1.0.4}/tests/test_progress.py +54 -3
- 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.4/tests/test_run_from_anywhere.py +85 -0
- {bite_check-1.0.2 → 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.2 → 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.2/tests/test_node_copies.py +0 -26
- {bite_check-1.0.2 → bite_check-1.0.4}/LICENSE +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/dependency_links.txt +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/entry_points.txt +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_check.egg-info/requires.txt +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/bite_mcp.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/setup.cfg +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_action.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_any_encoding.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_ask.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_bite_claim.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_bot.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_claim_command.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_comment_size.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_copy_names.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_deleted_files.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_doctests.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_fail_comment.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_first_run.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_go_other_systems.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_hang.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_huge_files.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_java_kotlin.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_json.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_later_test_near_tidy.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_live.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_mcp.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_merge_shards.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_most_wanted.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_names.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_no_pings.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_odd_repos.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_open_pr.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_passing_names.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_paste_paths.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_pr_checklist.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_publish_badge.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_rust_doc_examples.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_rust_unit_tests.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_score.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_score_trend.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_self_check.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_selftest.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_settings_file.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_shallow.py +0 -0
- {bite_check-1.0.2 → bite_check-1.0.4}/tests/test_tricks.py +0 -0
- {bite_check-1.0.2 → 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
|
|
@@ -39,19 +39,31 @@ Bite checks whether an AI coding agent's "fixed" is actually true.
|
|
|
39
39
|
|
|
40
40
|
<img alt="bite --demo: one fix is noticed by a test, the other has no test at all" src="https://raw.githubusercontent.com/connabyss/bite/main/assets/bite-demo.svg" width="760">
|
|
41
41
|
|
|
42
|
-
**Try it
|
|
42
|
+
**Try it now.** It's free, needs no key, and never changes your files. If you have Python, paste these two
|
|
43
|
+
lines into any terminal window (PowerShell, cmd, Terminal):
|
|
43
44
|
|
|
44
45
|
```
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
python -m pip install bite-check
|
|
47
|
+
python -m bite_check --free
|
|
47
48
|
```
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
Outside a project, Bite first shows a demo on a tiny made-up one. To check your own project, type the second line
|
|
51
|
+
and a space, drag your project's folder into the window (that types its path), and press Enter.
|
|
52
|
+
|
|
53
|
+
Have [pipx](https://pipx.pypa.io) or [uv](https://docs.astral.sh/uv/)? One line does it, no install:
|
|
54
|
+
`pipx run bite-check --free` or `uvx bite-check --free`. (On Linux or a Mac, if pip says "externally managed",
|
|
55
|
+
use one of those.) If your commits never say "fix", add `--any` to check every recent change. To keep Bite
|
|
56
|
+
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
52
57
|
|
|
53
58
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
54
|
-
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.
|
|
55
67
|
|
|
56
68
|
## Why you need this
|
|
57
69
|
|
|
@@ -117,10 +129,12 @@ out and runs the tests, and you see the difference:
|
|
|
117
129
|
It needs nothing besides git, takes a few seconds, and doesn't touch your files. Then try it on your own project:
|
|
118
130
|
|
|
119
131
|
```
|
|
120
|
-
|
|
121
|
-
bite --free
|
|
132
|
+
bite --free /path/to/your-repo
|
|
122
133
|
```
|
|
123
134
|
|
|
135
|
+
(Or type `bite --free ` and drag the project's folder into the window. From inside the project's folder, plain
|
|
136
|
+
`bite --free` works too.)
|
|
137
|
+
|
|
124
138
|
`bite` now works in any terminal window. `bite --free` needs no key and costs nothing. It takes each recent
|
|
125
139
|
change back out, runs your tests, and lists the changes no test guards, plus any new test that still passes
|
|
126
140
|
without its commit's code (it tests nothing). If something it needs is missing, like git or pytest, it says
|
|
@@ -298,7 +312,7 @@ jobs:
|
|
|
298
312
|
# install what your tests need here, e.g. for Python:
|
|
299
313
|
- uses: actions/setup-python@v7
|
|
300
314
|
- run: python -m pip install pytest -r requirements.txt
|
|
301
|
-
- uses: connabyss/bite@v1.0.
|
|
315
|
+
- uses: connabyss/bite@v1.0.4
|
|
302
316
|
```
|
|
303
317
|
|
|
304
318
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -312,7 +326,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
312
326
|
named `ANTHROPIC_API_KEY`, then:
|
|
313
327
|
|
|
314
328
|
```yaml
|
|
315
|
-
- uses: connabyss/bite@v1.0.
|
|
329
|
+
- uses: connabyss/bite@v1.0.4
|
|
316
330
|
with:
|
|
317
331
|
write-tests: true
|
|
318
332
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -429,7 +443,7 @@ jobs:
|
|
|
429
443
|
with:
|
|
430
444
|
fetch-depth: 0
|
|
431
445
|
# install what your tests need here, as in the pull request check
|
|
432
|
-
- uses: connabyss/bite@v1.0.
|
|
446
|
+
- uses: connabyss/bite@v1.0.4
|
|
433
447
|
with:
|
|
434
448
|
badge-branch: bite-badge
|
|
435
449
|
max-commits: 10
|
|
@@ -13,19 +13,31 @@ Bite checks whether an AI coding agent's "fixed" is actually true.
|
|
|
13
13
|
|
|
14
14
|
<img alt="bite --demo: one fix is noticed by a test, the other has no test at all" src="https://raw.githubusercontent.com/connabyss/bite/main/assets/bite-demo.svg" width="760">
|
|
15
15
|
|
|
16
|
-
**Try it
|
|
16
|
+
**Try it now.** It's free, needs no key, and never changes your files. If you have Python, paste these two
|
|
17
|
+
lines into any terminal window (PowerShell, cmd, Terminal):
|
|
17
18
|
|
|
18
19
|
```
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
python -m pip install bite-check
|
|
21
|
+
python -m bite_check --free
|
|
21
22
|
```
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
Outside a project, Bite first shows a demo on a tiny made-up one. To check your own project, type the second line
|
|
25
|
+
and a space, drag your project's folder into the window (that types its path), and press Enter.
|
|
26
|
+
|
|
27
|
+
Have [pipx](https://pipx.pypa.io) or [uv](https://docs.astral.sh/uv/)? One line does it, no install:
|
|
28
|
+
`pipx run bite-check --free` or `uvx bite-check --free`. (On Linux or a Mac, if pip says "externally managed",
|
|
29
|
+
use one of those.) If your commits never say "fix", add `--any` to check every recent change. To keep Bite
|
|
30
|
+
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
26
31
|
|
|
27
32
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
28
|
-
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.
|
|
29
41
|
|
|
30
42
|
## Why you need this
|
|
31
43
|
|
|
@@ -91,10 +103,12 @@ out and runs the tests, and you see the difference:
|
|
|
91
103
|
It needs nothing besides git, takes a few seconds, and doesn't touch your files. Then try it on your own project:
|
|
92
104
|
|
|
93
105
|
```
|
|
94
|
-
|
|
95
|
-
bite --free
|
|
106
|
+
bite --free /path/to/your-repo
|
|
96
107
|
```
|
|
97
108
|
|
|
109
|
+
(Or type `bite --free ` and drag the project's folder into the window. From inside the project's folder, plain
|
|
110
|
+
`bite --free` works too.)
|
|
111
|
+
|
|
98
112
|
`bite` now works in any terminal window. `bite --free` needs no key and costs nothing. It takes each recent
|
|
99
113
|
change back out, runs your tests, and lists the changes no test guards, plus any new test that still passes
|
|
100
114
|
without its commit's code (it tests nothing). If something it needs is missing, like git or pytest, it says
|
|
@@ -272,7 +286,7 @@ jobs:
|
|
|
272
286
|
# install what your tests need here, e.g. for Python:
|
|
273
287
|
- uses: actions/setup-python@v7
|
|
274
288
|
- run: python -m pip install pytest -r requirements.txt
|
|
275
|
-
- uses: connabyss/bite@v1.0.
|
|
289
|
+
- uses: connabyss/bite@v1.0.4
|
|
276
290
|
```
|
|
277
291
|
|
|
278
292
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -286,7 +300,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
286
300
|
named `ANTHROPIC_API_KEY`, then:
|
|
287
301
|
|
|
288
302
|
```yaml
|
|
289
|
-
- uses: connabyss/bite@v1.0.
|
|
303
|
+
- uses: connabyss/bite@v1.0.4
|
|
290
304
|
with:
|
|
291
305
|
write-tests: true
|
|
292
306
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -403,7 +417,7 @@ jobs:
|
|
|
403
417
|
with:
|
|
404
418
|
fetch-depth: 0
|
|
405
419
|
# install what your tests need here, as in the pull request check
|
|
406
|
-
- uses: connabyss/bite@v1.0.
|
|
420
|
+
- uses: connabyss/bite@v1.0.4
|
|
407
421
|
with:
|
|
408
422
|
badge-branch: bite-badge
|
|
409
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
|
|
@@ -39,19 +39,31 @@ Bite checks whether an AI coding agent's "fixed" is actually true.
|
|
|
39
39
|
|
|
40
40
|
<img alt="bite --demo: one fix is noticed by a test, the other has no test at all" src="https://raw.githubusercontent.com/connabyss/bite/main/assets/bite-demo.svg" width="760">
|
|
41
41
|
|
|
42
|
-
**Try it
|
|
42
|
+
**Try it now.** It's free, needs no key, and never changes your files. If you have Python, paste these two
|
|
43
|
+
lines into any terminal window (PowerShell, cmd, Terminal):
|
|
43
44
|
|
|
44
45
|
```
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
python -m pip install bite-check
|
|
47
|
+
python -m bite_check --free
|
|
47
48
|
```
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
Outside a project, Bite first shows a demo on a tiny made-up one. To check your own project, type the second line
|
|
51
|
+
and a space, drag your project's folder into the window (that types its path), and press Enter.
|
|
52
|
+
|
|
53
|
+
Have [pipx](https://pipx.pypa.io) or [uv](https://docs.astral.sh/uv/)? One line does it, no install:
|
|
54
|
+
`pipx run bite-check --free` or `uvx bite-check --free`. (On Linux or a Mac, if pip says "externally managed",
|
|
55
|
+
use one of those.) If your commits never say "fix", add `--any` to check every recent change. To keep Bite
|
|
56
|
+
installed as a `bite` command, see [Try it in a minute](#try-it-in-a-minute).
|
|
52
57
|
|
|
53
58
|
**Here for Hack Week or your first open-source PR?** These [good first issues](https://github.com/connabyss/bite/labels/good%20first%20issue)
|
|
54
|
-
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.
|
|
55
67
|
|
|
56
68
|
## Why you need this
|
|
57
69
|
|
|
@@ -117,10 +129,12 @@ out and runs the tests, and you see the difference:
|
|
|
117
129
|
It needs nothing besides git, takes a few seconds, and doesn't touch your files. Then try it on your own project:
|
|
118
130
|
|
|
119
131
|
```
|
|
120
|
-
|
|
121
|
-
bite --free
|
|
132
|
+
bite --free /path/to/your-repo
|
|
122
133
|
```
|
|
123
134
|
|
|
135
|
+
(Or type `bite --free ` and drag the project's folder into the window. From inside the project's folder, plain
|
|
136
|
+
`bite --free` works too.)
|
|
137
|
+
|
|
124
138
|
`bite` now works in any terminal window. `bite --free` needs no key and costs nothing. It takes each recent
|
|
125
139
|
change back out, runs your tests, and lists the changes no test guards, plus any new test that still passes
|
|
126
140
|
without its commit's code (it tests nothing). If something it needs is missing, like git or pytest, it says
|
|
@@ -298,7 +312,7 @@ jobs:
|
|
|
298
312
|
# install what your tests need here, e.g. for Python:
|
|
299
313
|
- uses: actions/setup-python@v7
|
|
300
314
|
- run: python -m pip install pytest -r requirements.txt
|
|
301
|
-
- uses: connabyss/bite@v1.0.
|
|
315
|
+
- uses: connabyss/bite@v1.0.4
|
|
302
316
|
```
|
|
303
317
|
|
|
304
318
|
Options go under `with:`: `args` (extra `bite` options, e.g. `--serious`), `max-commits` (default 20),
|
|
@@ -312,7 +326,7 @@ When no test noticed a change, Bite can write that test for you. Add your Anthro
|
|
|
312
326
|
named `ANTHROPIC_API_KEY`, then:
|
|
313
327
|
|
|
314
328
|
```yaml
|
|
315
|
-
- uses: connabyss/bite@v1.0.
|
|
329
|
+
- uses: connabyss/bite@v1.0.4
|
|
316
330
|
with:
|
|
317
331
|
write-tests: true
|
|
318
332
|
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -429,7 +443,7 @@ jobs:
|
|
|
429
443
|
with:
|
|
430
444
|
fetch-depth: 0
|
|
431
445
|
# install what your tests need here, as in the pull request check
|
|
432
|
-
- uses: connabyss/bite@v1.0.
|
|
446
|
+
- uses: connabyss/bite@v1.0.4
|
|
433
447
|
with:
|
|
434
448
|
badge-branch: bite-badge
|
|
435
449
|
max-commits: 10
|
|
@@ -2,6 +2,7 @@ LICENSE
|
|
|
2
2
|
README.md
|
|
3
3
|
ask.py
|
|
4
4
|
bite.py
|
|
5
|
+
bite_check.py
|
|
5
6
|
bite_mcp.py
|
|
6
7
|
live.py
|
|
7
8
|
pyproject.toml
|
|
@@ -15,6 +16,7 @@ bite_check.egg-info/requires.txt
|
|
|
15
16
|
bite_check.egg-info/top_level.txt
|
|
16
17
|
tests/test_action.py
|
|
17
18
|
tests/test_any_encoding.py
|
|
19
|
+
tests/test_apply_in_nested_copy.py
|
|
18
20
|
tests/test_ask.py
|
|
19
21
|
tests/test_bite_claim.py
|
|
20
22
|
tests/test_bot.py
|
|
@@ -23,31 +25,44 @@ tests/test_comeback.py
|
|
|
23
25
|
tests/test_comment_size.py
|
|
24
26
|
tests/test_copy_names.py
|
|
25
27
|
tests/test_deleted_files.py
|
|
28
|
+
tests/test_demo_name_message.py
|
|
26
29
|
tests/test_doctests.py
|
|
27
30
|
tests/test_fail_comment.py
|
|
28
31
|
tests/test_first_run.py
|
|
32
|
+
tests/test_flaky_baseline.py
|
|
29
33
|
tests/test_go_other_systems.py
|
|
34
|
+
tests/test_good_failure_wording.py
|
|
30
35
|
tests/test_hang.py
|
|
31
36
|
tests/test_huge_files.py
|
|
32
37
|
tests/test_java_kotlin.py
|
|
33
38
|
tests/test_jobs_memory.py
|
|
34
39
|
tests/test_json.py
|
|
40
|
+
tests/test_keep_output.py
|
|
41
|
+
tests/test_last_zero.py
|
|
35
42
|
tests/test_later_test_near_tidy.py
|
|
36
43
|
tests/test_live.py
|
|
37
44
|
tests/test_mcp.py
|
|
38
45
|
tests/test_merge_shards.py
|
|
46
|
+
tests/test_missing_folder_message.py
|
|
39
47
|
tests/test_most_wanted.py
|
|
40
48
|
tests/test_names.py
|
|
41
49
|
tests/test_no_pings.py
|
|
50
|
+
tests/test_no_test_command_help.py
|
|
42
51
|
tests/test_node_copies.py
|
|
43
52
|
tests/test_odd_inputs.py
|
|
44
53
|
tests/test_odd_repos.py
|
|
45
54
|
tests/test_open_pr.py
|
|
55
|
+
tests/test_own_tests_first.py
|
|
46
56
|
tests/test_passing_names.py
|
|
47
57
|
tests/test_paste_paths.py
|
|
58
|
+
tests/test_plural_commits.py
|
|
48
59
|
tests/test_pr_checklist.py
|
|
49
60
|
tests/test_progress.py
|
|
50
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
|
|
65
|
+
tests/test_run_from_anywhere.py
|
|
51
66
|
tests/test_rust_doc_examples.py
|
|
52
67
|
tests/test_rust_unit_tests.py
|
|
53
68
|
tests/test_score.py
|
|
@@ -57,6 +72,11 @@ tests/test_selftest.py
|
|
|
57
72
|
tests/test_settings_file.py
|
|
58
73
|
tests/test_shallow.py
|
|
59
74
|
tests/test_shard.py
|
|
75
|
+
tests/test_skipped_own_test.py
|
|
76
|
+
tests/test_spelled_under_one_second.py
|
|
60
77
|
tests/test_submodules.py
|
|
78
|
+
tests/test_tests_already_red.py
|
|
61
79
|
tests/test_tricks.py
|
|
62
|
-
tests/
|
|
80
|
+
tests/test_type_declarations.py
|
|
81
|
+
tests/test_update.py
|
|
82
|
+
tests/test_utf8_output.py
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""`python -m bite_check`: runs Bite with only Python and pip, when the `bite` command isn't on PATH (a common
|
|
2
|
+
case on Windows, where pip puts commands in a folder PATH doesn't list)."""
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
if __name__ == "__main__":
|
|
8
|
+
# python -m puts the current folder first on sys.path. Inside someone's project, their own recent.py (a common
|
|
9
|
+
# name) would then be imported instead of Bite's, so leave it out unless Bite itself lives here (a clone).
|
|
10
|
+
here = os.path.dirname(os.path.abspath(__file__))
|
|
11
|
+
cwd = os.getcwd()
|
|
12
|
+
if os.path.normcase(here) != os.path.normcase(cwd):
|
|
13
|
+
sys.path[:] = [p for p in sys.path
|
|
14
|
+
if p not in ("", ".") and os.path.normcase(os.path.abspath(p)) != os.path.normcase(cwd)]
|
|
15
|
+
from recent import main
|
|
16
|
+
|
|
17
|
+
sys.exit(main())
|
|
@@ -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.")
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "bite-check"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.4"
|
|
8
8
|
description = "Checks whether the \"fixed\" in your coding agent's recent commits is actually true."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -35,7 +35,7 @@ Source = "https://github.com/connabyss/bite"
|
|
|
35
35
|
Issues = "https://github.com/connabyss/bite/issues"
|
|
36
36
|
|
|
37
37
|
[tool.setuptools]
|
|
38
|
-
py-modules = ["ask", "bite", "bite_mcp", "live", "recent", "repo"]
|
|
38
|
+
py-modules = ["ask", "bite", "bite_check", "bite_mcp", "live", "recent", "repo"]
|
|
39
39
|
|
|
40
40
|
[tool.pytest.ini_options]
|
|
41
41
|
testpaths = ["tests"]
|