Repository navigation
Conversation
|
⚪ Looks safe to merge: no open points, no breaking contract change found. Reviewed the whole diff: nothing to fix. ✅ Health of changed files: 5.7 → 6.2 (+0.5; structure +0.4) Average full file score (structure and history) of 21 changed code files, weighted by size before this PR; not the repository score. 👀 Suggested reviewers RaghavChamadiya
Settings and updatesSilence one PR with |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d9bde1f to
3486dfa
Compare
The file classifier runs per file, and for .c/.h paths it now checks the LPC roots. config() re-resolved every root on each call; it now costs one stat of the config file, with the parsed result cached per environment, working directory and config file version (85 -> 58 us per .c/.h file on a 67k-file mudlib). The classifier docstring no longer claims it does no file I/O. Addresses the repowise-bot review on repowise-dev#6186. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #6139. First of a short series (one PR at a time, as agreed in the issue).
Adds LPC (LDMud) as an opt-in language:
.c/.hfiles are LPC only under configured mudlib roots (REPOWISE_LPC_CONFIG/REPOWISE_LPC_ROOTS); everything else keeps the C/C++ classification.repowise[lpc](tree-sitter-lpc>=0.1,<0.2, the repowise-dev fork on PyPI). The import is guarded: without it LPC stays inactive (files stay C/C++, one warning naming the extra). CI installs it withuv sync --extra lpc.inheritand#includeimports..c/.houtside configured roots still parsing as C/C++ (symbols and includes), and LPC inactive without the grammar.docs/reference/LPC.md.uv.lockwas regenerated with CI's uv 0.13.9: it rewritesrevision3 -> 5 and drops the redundantpython_full_version < '3.13'markers under fastembed (already gated by thelocal-embedextra).uv lock --checkpasses.How it was measured
6,912 / 55,760
inheritstatements resolve (12.4%); most use macros (inherit STD_ROOM;), which the next PR handles.Corpus: a private LDMud mudlib (68,254 files traversed, 67,529 parsed as LPC, 55,760
inheritstatements; default traversal, nothing excluded). Only counts are quoted; the test fixtures are synthetic. Each statement goes through the normal resolver (resolve_import) against the set of traversed files; resolved = it names an indexed file. Later PRs use the same mudlib revision and config, switching on only the keys they add.Script
Tests
tests/unit/ingestion: 7,173 passed on this branch;ruff checkclean; LPC tests also pass on the tree-sitter 0.25.0 floor with tree-sitter-lpc 0.1.0 from PyPI.🤖 Generated with Claude Code