Skip to content

Commit e77d549

Browse files
committed
refactor: remove Python diffctx pipeline, Rust backend required
1 parent e9ecd2f commit e77d549

103 files changed

Lines changed: 180 additions & 20046 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/treemapper/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pathlib import Path
66
from typing import Any
77

8-
from .diffctx import ProjectGraph, build_diff_context, build_project_graph
8+
from .diffctx import build_diff_context, build_project_graph
99
from .ignore import get_ignore_specs, get_whitelist_spec
1010
from .tree import TreeBuildContext, build_tree
1111
from .version import __version__
@@ -14,7 +14,6 @@
1414
logging.getLogger("treemapper").addHandler(logging.NullHandler())
1515

1616
__all__ = [
17-
"ProjectGraph",
1817
"__version__",
1918
"build_diff_context",
2019
"build_project_graph",

src/treemapper/diffctx/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
from __future__ import annotations
22

3+
from typing import TYPE_CHECKING
4+
35
from .git import GitError
46
from .pipeline import build_diff_context
5-
from .project_graph import ProjectGraph, build_project_graph
7+
8+
if TYPE_CHECKING:
9+
from .project_graph import ProjectGraph
610

711
__all__ = ["GitError", "ProjectGraph", "build_diff_context", "build_project_graph"]
12+
13+
14+
def build_project_graph(*args, **kwargs): # type: ignore[no-untyped-def]
15+
from .project_graph import build_project_graph as _build
16+
17+
return _build(*args, **kwargs)

src/treemapper/diffctx/_pipeline_discovery.py

Lines changed: 0 additions & 193 deletions
This file was deleted.

src/treemapper/diffctx/_pipeline_scoring.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)