From 2302df3ad0fdf96ba395b0ecac66a980e780cba7 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 10 Jul 2025 23:00:01 +0200 Subject: [PATCH] Fix docstring of get_ignore_spec --- src/serena/project.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/serena/project.py b/src/serena/project.py index f193b653..490b3acf 100644 --- a/src/serena/project.py +++ b/src/serena/project.py @@ -76,14 +76,9 @@ class Project: return abs_path.read_text(encoding=self.project_config.encoding) def get_ignore_spec(self) -> pathspec.PathSpec: - """Returns the pathspec matcher for the paths that were configured to be ignored through - the multilspy config. - - This is is a subset of the full language-specific ignore spec that determines - which files are relevant for the language server. - - This matcher is useful for operations outside of the language server, - such as when searching for relevant non-language files in the project. + """ + :return: the pathspec matcher for the paths that were configured to be ignored, + either explicitly or implicitly through .gitignore files. """ return self._ignore_spec