Skip to content

Remove unused dev and research dependencies - #121

Open
usehoplite[bot] wants to merge 1 commit into
mainfrom
hoplite/lamia-f825e009
Open

Remove unused dev and research dependencies#121
usehoplite[bot] wants to merge 1 commit into
mainfrom
hoplite/lamia-f825e009

Conversation

@usehoplite

@usehoplite usehoplite Bot commented Sep 2, 2026

Copy link
Copy Markdown

Summary

Dependency audit of the project's Python manifests. Two declared dependencies are never imported anywhere in the repository and were safely removed; everything else was verified in use and kept.

Removed (proven unused)

  • markdown-it-py==4.2.0 (dev extra) — no import markdown_it anywhere in the repo; the only occurrences were the manifest and lockfile.
  • tokenizers>=0.20 (research extra) — no import tokenizers / from tokenizers anywhere in the repo (prose references to "tokenizers" in docs/evidence are unrelated to the HF package).

Kept (verified in use)

  • pytest — imported throughout tests/, run by CI.
  • fonttools / uharfbuzz — lazily imported by tools/h14_mechanism_scan.py and tools/h16_shaping_closure_scan.py; the research extra contents are asserted by tests/test_cycle8_post_sanitizer_extended.py.
  • requirements-smoke.txt (torch/transformers) — active CI dependency, not part of the uv lockfile, unchanged.
  • bindings/node, editors/vscode, crates/fuckmark-scan — declared zero external dependencies already.

Lockfile

uv.lock regenerated: 26 packages → 9 (pytest + fonttools + uharfbuzz and their real transitive deps only). Counts as 267 lines removed.

Verification

  • uv lock --check --python 3.12 passes with the local uv (0.9.28) and with CI-pinned uv==0.10.0.
  • uv sync --extra dev --extra research resolves and installs cleanly.
  • Full test suite: python -m pytest -q — all tests pass, including tests/test_m0_source_freeze.py (lockfile present/project-bound), tests/test_cycle8_post_sanitizer_extended.py (research extra contract), tests/test_cli.py, tests/test_project_identity.py, tests/test_version.py.

Open in Hoplite

markdown-it-py (dev extra) and tokenizers (research extra) are never
imported anywhere in the repository; drop them and their transitive
closure from the lockfile. pytest, fonttools, and uharfbuzz remain:
pytest is used by the test suite, and fonttools/uharfbuzz are lazily
imported by tools/h14_mechanism_scan.py and tools/h16_shaping_closure_scan.py.

Co-authored-by: Yinhao Chen <pxxyhc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants