Skip to content

.nox missing from _SKIP_DIRS — nox virtualenvs get fully indexed (91% graph noise in a real repo) #1804

Closed

Description

@igorregoir-lgtm

Summary

_SKIP_DIRS in graphify/detect.py includes .tox but not .nox. Repos using nox (the tox successor) get their virtualenvs fully indexed, flooding the graph with dependency noise.

Real-world impact

Windows 11, graphifyy 0.9.11, graphify extract on a Python repo containing a .nox/ env:

  • Graph came out with 7,365 nodes — 6,720 of them (91%) sourced from .nox/ (Jupyter nbextensions, pydeck, and other site-packages content inside the nox venv).
  • The useful graph was only ~645 nodes, drowned in vendored dependencies.
  • Semantic extraction also burned LLM tokens reading venv docs.

Checked master (graphify/detect.py, around the _SKIP_DIRS literal): .tox, .venv, node_modules, .next, .terraform are all there — .nox is not. Since nox is the direct successor of tox and creates .nox/ by convention (same shape of directory tree), this looks like an oversight rather than a decision.

Suggested fix

One line in _SKIP_DIRS:

".tox", ".nox", ".eggs", "*.egg-info",

Workaround (for anyone hitting this)

.graphifyignore at the repo root with:

.nox/

then rebuild (GRAPHIFY_FORCE=1 graphify update . or delete graphify-out/ and re-extract). In my case this took the graph from 7,365 inflated nodes to 628 real ones.

Activity

  1. safishamsi commented on Jul 12, 2026

    @safishamsi
    Member

    Fixed in 90b545c (ships in 0.9.14). Added .nox to _SKIP_DIRS right next to .tox, with a regression test asserting a .nox/ tree is excluded while real source is kept. Thanks for the clear diagnosis and the 91%-noise real-world numbers, @igorregoir-lgtm — that made it an easy call.

  2. added a commit that references this issue on Jul 13, 2026
  3. added a commit that references this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions