From a597bb1715b43ac19fae142c61c23b7ff6576232 Mon Sep 17 00:00:00 2001 From: Riya Amemiya Date: Fri, 15 Aug 2025 02:40:54 +0900 Subject: [PATCH] Correct typos in variable names, constants, and documentation (#488) --- CONTRIBUTING.md | 2 +- README.md | 2 +- src/serena/agent.py | 4 ++-- src/serena/config/serena_config.py | 4 ++-- src/serena/constants.py | 2 +- src/serena/resources/project.template.yml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f06c3f31..f3fbe375 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Serena is under active development. We are just discovering what it can do and where the limitations lie. -Feel free to share your learnings by opening open new issues, feature requests and extensions. +Feel free to share your learnings by opening new issues, feature requests and extensions. ## Developer Environment Setup diff --git a/README.md b/README.md index 0609dff0..d56147a6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ * :free: Serena is **free & open-source**, enhancing the capabilities of LLMs you already have access to free of charge. You can think of Serena as an IDE for a coding agent. With it, the agent no longer needs to read entire -files, perform grep-like searches or string replacements to find and and edit the right code. Instead, it can use code centered tools like `find_symbol`, `find_referencing_symbols` and `insert_after_symbol`. +files, perform grep-like searches or string replacements to find and edit the right code. Instead, it can use code centered tools like `find_symbol`, `find_referencing_symbols` and `insert_after_symbol`. ### Users' Feedback diff --git a/src/serena/agent.py b/src/serena/agent.py index 53fead1d..57f95410 100644 --- a/src/serena/agent.py +++ b/src/serena/agent.py @@ -599,9 +599,9 @@ class SerenaAgent: def print_tool_overview(self) -> None: ToolRegistry().print_tool_overview(self._active_tools.values()) - def mark_file_modified(self, relativ_path: str) -> None: + def mark_file_modified(self, relative_path: str) -> None: assert self.lines_read is not None - self.lines_read.invalidate_lines_read(relativ_path) + self.lines_read.invalidate_lines_read(relative_path) def __del__(self) -> None: """ diff --git a/src/serena/config/serena_config.py b/src/serena/config/serena_config.py index 41ef6433..4c0817da 100644 --- a/src/serena/config/serena_config.py +++ b/src/serena/config/serena_config.py @@ -22,7 +22,7 @@ from serena.constants import ( DEFAULT_ENCODING, PROJECT_TEMPLATE_FILE, REPO_ROOT, - SELENA_CONFIG_TEMPLATE_FILE, + SERENA_CONFIG_TEMPLATE_FILE, SERENA_MANAGED_DIR_IN_HOME, SERENA_MANAGED_DIR_NAME, ) @@ -365,7 +365,7 @@ class SerenaConfig(ToolInclusionDefinition, ToStringMixin): :param config_file_path: the path where the configuration file should be generated """ log.info(f"Auto-generating Serena configuration file in {config_file_path}") - loaded_commented_yaml = load_yaml(SELENA_CONFIG_TEMPLATE_FILE, preserve_comments=True) + loaded_commented_yaml = load_yaml(SERENA_CONFIG_TEMPLATE_FILE, preserve_comments=True) save_yaml(config_file_path, loaded_commented_yaml, preserve_comments=True) @classmethod diff --git a/src/serena/constants.py b/src/serena/constants.py index d25f5c45..1e5d98a1 100644 --- a/src/serena/constants.py +++ b/src/serena/constants.py @@ -30,6 +30,6 @@ DEFAULT_CONTEXT = "desktop-app" DEFAULT_MODES = ("interactive", "editing") PROJECT_TEMPLATE_FILE = str(_serena_pkg_path / "resources" / "project.template.yml") -SELENA_CONFIG_TEMPLATE_FILE = str(_serena_pkg_path / "resources" / "serena_config.template.yml") +SERENA_CONFIG_TEMPLATE_FILE = str(_serena_pkg_path / "resources" / "serena_config.template.yml") SERENA_LOG_FORMAT = "%(levelname)-5s %(asctime)-15s [%(threadName)s] %(name)s:%(funcName)s:%(lineno)d - %(message)s" diff --git a/src/serena/resources/project.template.yml b/src/serena/resources/project.template.yml index 7aaad6cc..a51cfcf5 100644 --- a/src/serena/resources/project.template.yml +++ b/src/serena/resources/project.template.yml @@ -11,7 +11,7 @@ ignore_all_files_in_gitignore: true # list of additional paths to ignore # same syntax as gitignore, so you can use * and ** # Was previously called `ignored_dirs`, please update your config if you are using that. -# Added (renamed)on 2025-04-07 +# Added (renamed) on 2025-04-07 ignored_paths: [] # whether the project is in read-only mode