Skip to content

Commit a279485

Browse files
committed
Don't use ports and adapters for ImportGraph
It's never brought any value to have an abstraction for the ImportGraph. So this removes the abstract class and then moves the concretion to the application layer.
1 parent 8ddc6fb commit a279485

17 files changed

Lines changed: 178 additions & 320 deletions

.importlinter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ ignore_imports =
1818
; is an object within grimp, rather than a module in its own right,
1919
; so we ignore these imports here.
2020
grimp.adaptors.caching -> grimp
21-
grimp.adaptors.graph -> grimp
21+
grimp.application.graph -> grimp
2222
grimp.adaptors.filesystem -> grimp
2323
grimp.application.scanning -> grimp

src/grimp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__version__ = "3.12"
22

3-
from .application.ports.graph import DetailedImport, ImportGraph, Import
3+
from .application.graph import DetailedImport, ImportGraph, Import
44
from .domain.analysis import PackageDependency, Route
55
from .domain.valueobjects import DirectImport, Module, Layer
66
from .main import build_graph

src/grimp/adaptors/graph.py

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

0 commit comments

Comments
 (0)