Commit 6737334
fix: Remove pytest_cache dependency for project root detection
split_at_root now recognises common project root markers instead of
relying solely on .pytest_cache, which only exists after running pytest.
Also fixes an infinite loop when no root marker was found (0 is truthy
in Lua, so `while #t do` never terminates on an empty table).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 63444b8 commit 6737334
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
5 | 15 | | |
6 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
7 | 22 | | |
8 | 23 | | |
9 | 24 | | |
| |||
18 | 33 | | |
19 | 34 | | |
20 | 35 | | |
21 | | - | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| |||
0 commit comments