Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Consiliency_treesitter-chunker /tests /test_repo_hygiene.py
| """Tracked root cruft and regenerated metadata stay out of the repository.""" | |
| import subprocess | |
| CRUFT = ( | |
| "test_api.py", | |
| "test_symbol_extraction.py", | |
| "test_csharp.cs", | |
| "test_tsx.tsx", | |
| "test_wasm.wat", | |
| "tmp_test.Rmd", | |
| "compatibility.db", | |
| "troubleshooting.db", | |
| "validation_report.json", | |
| "setup.py.bak", | |
| "CODE_REVIEW_REPORT.md", | |
| "mcp_server.log", | |
| "treesitter_chunker.egg-info/**", | |
| "ide/**/node_modules/**", | |
| ) | |
| def test_root_cruft_is_untracked_and_generated_paths_are_ignored() -> None: | |
| tracked = subprocess.run( | |
| ["git", "ls-files", *CRUFT], | |
| check=True, | |
| capture_output=True, | |
| text=True, | |
| ).stdout | |
| assert not tracked | |
| for path in ( | |
| "compatibility.db", | |
| "mcp_server.log", | |
| "treesitter_chunker.egg-info/", | |
| "ide/vscode/treesitter-chunker/node_modules/", | |
| ): | |
| assert ( | |
| subprocess.run(["git", "check-ignore", "-q", path], check=False).returncode | |
| == 0 | |
| ) | |
Xet Storage Details
- Size:
- 1.02 kB
- Xet hash:
- 7e939884dad176b8c06ed7c0704a01aee118b9a16e4a445f84be34cc726986ab
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.