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:
takeokunn committed 2026-02-13 15:37:59 +09:00
1 parent f2beb3bb16
commit 43902782fa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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")