bioguider 0.2.31__tar.gz → 0.2.32__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bioguider might be problematic. Click here for more details.

Files changed (80) hide show
  1. {bioguider-0.2.31 → bioguider-0.2.32}/PKG-INFO +1 -1
  2. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_utils.py +4 -1
  3. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_readme_task.py +4 -1
  4. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/evaluation_manager.py +0 -2
  5. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/code_structure_builder.py +7 -1
  6. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/r_file_handler.py +6 -4
  7. {bioguider-0.2.31 → bioguider-0.2.32}/pyproject.toml +1 -1
  8. {bioguider-0.2.31 → bioguider-0.2.32}/LICENSE +0 -0
  9. {bioguider-0.2.31 → bioguider-0.2.32}/README.md +0 -0
  10. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/__init__.py +0 -0
  11. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/__init__.py +0 -0
  12. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_task.py +0 -0
  13. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/agent_tools.py +0 -0
  14. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_execute_step.py +0 -0
  15. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_observe_step.py +0 -0
  16. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_plan_step.py +0 -0
  17. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_task.py +0 -0
  18. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/collection_task_utils.py +0 -0
  19. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_agent.py +0 -0
  20. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_agent_2step.py +0 -0
  21. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_conversation.py +0 -0
  22. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/common_step.py +0 -0
  23. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_collection_step.py +0 -0
  24. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_evaluation_task.py +0 -0
  25. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_evaluation_task_utils.py +0 -0
  26. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_observe_step.py +0 -0
  27. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/consistency_query_step.py +0 -0
  28. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_execute_step.py +0 -0
  29. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_observe_step.py +0 -0
  30. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_plan_step.py +0 -0
  31. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_task.py +0 -0
  32. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/dockergeneration_task_utils.py +0 -0
  33. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_installation_task.py +0 -0
  34. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_submission_requirements_task.py +0 -0
  35. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_task.py +0 -0
  36. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_tutorial_task.py +0 -0
  37. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_tutorial_task_prompts.py +0 -0
  38. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_userguide_prompts.py +0 -0
  39. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/evaluation_userguide_task.py +0 -0
  40. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_execute_step.py +0 -0
  41. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_observe_step.py +0 -0
  42. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_plan_step.py +0 -0
  43. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_task.py +0 -0
  44. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/identification_task_utils.py +0 -0
  45. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/peo_common_step.py +0 -0
  46. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/prompt_utils.py +0 -0
  47. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/python_ast_repl_tool.py +0 -0
  48. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/agents/rag_collection_task.py +0 -0
  49. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/conversation.py +0 -0
  50. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/database/code_structure_db.py +0 -0
  51. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/database/summarized_file_db.py +0 -0
  52. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/__init__.py +0 -0
  53. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/change_planner.py +0 -0
  54. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/document_renderer.py +0 -0
  55. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_cleaner.py +0 -0
  56. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_content_generator.py +0 -0
  57. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/llm_injector.py +0 -0
  58. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/models.py +0 -0
  59. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/output_manager.py +0 -0
  60. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/repo_reader.py +0 -0
  61. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/report_loader.py +0 -0
  62. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/style_analyzer.py +0 -0
  63. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/suggestion_extractor.py +0 -0
  64. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/generation/test_metrics.py +0 -0
  65. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/generation_manager.py +0 -0
  66. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/managers/generation_test_manager.py +0 -0
  67. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/__init__.py +0 -0
  68. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/config.py +0 -0
  69. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/data_pipeline.py +0 -0
  70. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/embedder.py +0 -0
  71. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/rag/rag.py +0 -0
  72. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/settings.py +0 -0
  73. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/constants.py +0 -0
  74. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/default.gitignore +0 -0
  75. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/file_utils.py +0 -0
  76. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/gitignore_checker.py +0 -0
  77. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/notebook_utils.py +0 -0
  78. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/pyphen_utils.py +0 -0
  79. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/python_file_handler.py +0 -0
  80. {bioguider-0.2.31 → bioguider-0.2.32}/bioguider/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioguider
3
- Version: 0.2.31
3
+ Version: 0.2.32
4
4
  Summary: An AI-Powered package to help biomedical developers to generate clear documentation
5
5
  License: MIT
6
6
  Author: Cankun Wang
@@ -27,6 +27,7 @@ from bioguider.utils.utils import clean_action_input
27
27
  from ..utils.gitignore_checker import GitignoreChecker
28
28
  from ..database.summarized_file_db import SummarizedFilesDb
29
29
  from bioguider.agents.common_conversation import CommonConversation
30
+ from bioguider.rag.config import configs
30
31
 
31
32
  logger = logging.getLogger(__name__)
32
33
 
@@ -153,7 +154,9 @@ def read_directory(
153
154
  return None
154
155
  gitignore_checker = GitignoreChecker(
155
156
  directory=dir_path,
156
- gitignore_path=gitignore_path
157
+ gitignore_path=gitignore_path,
158
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
159
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
157
160
  )
158
161
  files = gitignore_checker.check_files_and_folders(level=level)
159
162
  return files
@@ -28,6 +28,7 @@ from bioguider.utils.constants import (
28
28
  EvaluationREADMEResult,
29
29
  )
30
30
  from bioguider.utils.utils import increase_token_usage
31
+ from bioguider.rag.config import configs
31
32
 
32
33
  logger = logging.getLogger(__name__)
33
34
 
@@ -638,7 +639,9 @@ class EvaluationREADMETask(EvaluationTask):
638
639
  repo_path = self.repo_path
639
640
  gitignore_path = Path(repo_path, ".gitignore")
640
641
  gitignore_checker = GitignoreChecker(
641
- directory=repo_path, gitignore_path=gitignore_path
642
+ directory=repo_path, gitignore_path=gitignore_path,
643
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
644
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
642
645
  )
643
646
  found_readme_files = gitignore_checker.check_files_and_folders(
644
647
  check_file_cb=lambda root_dir, relative_path: Path(relative_path).name.lower() in possible_readme_files,
@@ -3,10 +3,8 @@ from pathlib import Path
3
3
 
4
4
  from bioguider.agents.evaluation_tutorial_task import EvaluationTutorialTask
5
5
  from bioguider.agents.evaluation_userguide_task import EvaluationUserGuideTask
6
- from bioguider.agents.prompt_utils import CollectionGoalItemEnum
7
6
  from bioguider.database.code_structure_db import CodeStructureDb
8
7
  from bioguider.utils.constants import ProjectMetadata
9
- from bioguider.utils.gitignore_checker import GitignoreChecker
10
8
 
11
9
  from ..agents.identification_task import IdentificationTask
12
10
  from ..rag.rag import RAG
@@ -6,6 +6,7 @@ from bioguider.utils.r_file_handler import RFileHandler
6
6
  from .gitignore_checker import GitignoreChecker
7
7
  from .python_file_handler import PythonFileHandler
8
8
  from ..database.code_structure_db import CodeStructureDb
9
+ from ..rag.config import configs
9
10
 
10
11
  logger = logging.getLogger(__name__)
11
12
 
@@ -17,7 +18,12 @@ class CodeStructureBuilder:
17
18
  code_structure_db: CodeStructureDb,
18
19
  ):
19
20
  self.repo_path = str(repo_path)
20
- self.gitignore_checker = GitignoreChecker(repo_path, str(gitignore_path))
21
+ self.gitignore_checker = GitignoreChecker(
22
+ directory=repo_path,
23
+ gitignore_path=str(gitignore_path),
24
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
25
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
26
+ )
21
27
  self.file_handler = PythonFileHandler(repo_path)
22
28
  self.code_structure_db = code_structure_db
23
29
 
@@ -348,10 +348,12 @@ class RFileHandler:
348
348
  s = line.lstrip()
349
349
  if s.startswith("#'"):
350
350
  buf.append(s[2:].lstrip())
351
- line_idx -= 1
352
- continue
353
- # stop at first non-roxygen line (don’t cross blank + NULL padding blocks)
354
- break
351
+ elif s.strip() == "":
352
+ pass
353
+ else:
354
+ # stop at first non-roxygen line (don’t cross blank + NULL padding blocks)
355
+ break
356
+ line_idx -= 1
355
357
  if not buf:
356
358
  return None
357
359
  buf.reverse()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bioguider"
3
- version = "0.2.31"
3
+ version = "0.2.32"
4
4
  description = "An AI-Powered package to help biomedical developers to generate clear documentation"
5
5
  authors = [
6
6
  "Cankun Wang <Cankun.Wang@osumc.edu>",
File without changes
File without changes