We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c12474 + 922cfea commit 4d06613Copy full SHA for 4d06613
code_graph/project.py
@@ -3,7 +3,6 @@
3
import logging
4
import validators
5
import subprocess
6
-from git import Repo
7
from .info import *
8
from pathlib import Path
9
from .graph import Graph
@@ -61,6 +60,7 @@ def from_git_repository(cls, url: str):
61
60
62
@classmethod
63
def from_local_repository(cls, path: Path|str):
+ from git import Repo
64
path = Path(path) if isinstance(path, str) else path
65
66
# Validate path exists
@@ -77,6 +77,7 @@ def from_local_repository(cls, path: Path|str):
77
return cls(name, path, url)
78
79
def analyze_sources(self, ignore: Optional[List[str]] = []) -> Graph:
80
81
analyzer = SourceAnalyzer()
82
analyzer.analyze(self.path, self.graph, ignore)
83
0 commit comments