mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Project.load: accept SerenaConfig instead of global_ignored_paths
Use `serena_config: SerenaConfig | None` without a default value, requiring callers to explicitly pass the configuration.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -133,8 +133,8 @@ class Project(ToStringMixin):
|
||||
def load(
|
||||
cls,
|
||||
project_root: str | Path,
|
||||
serena_config: "SerenaConfig | None",
|
||||
autogenerate: bool = True,
|
||||
serena_config: "SerenaConfig | None" = None,
|
||||
) -> "Project":
|
||||
project_root = Path(project_root).resolve()
|
||||
if not project_root.exists():
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ def start_default_ls_context(language: Language) -> Iterator[SolidLanguageServer
|
||||
|
||||
def _create_default_project(language: Language) -> Project:
|
||||
repo_path = str(get_repo_path(language))
|
||||
return Project.load(repo_path)
|
||||
return Project.load(repo_path, serena_config=None)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
||||
Reference in new issue
Block a user