robotcode-robot 0.93.0__tar.gz → 0.93.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/PKG-INFO +2 -2
  2. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/pyproject.toml +1 -1
  3. robotcode_robot-0.93.1/src/robotcode/robot/__version__.py +1 -0
  4. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/imports_manager.py +2 -0
  5. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/library_doc.py +17 -5
  6. robotcode_robot-0.93.0/src/robotcode/robot/__version__.py +0 -1
  7. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/.gitignore +0 -0
  8. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/LICENSE.txt +0 -0
  9. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/README.md +0 -0
  10. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/__init__.py +0 -0
  11. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/config/__init__.py +0 -0
  12. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/config/loader.py +0 -0
  13. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/config/model.py +0 -0
  14. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/config/utils.py +0 -0
  15. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/__init__.py +0 -0
  16. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/diagnostics_modifier.py +0 -0
  17. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
  18. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/entities.py +0 -0
  19. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/errors.py +0 -0
  20. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
  21. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/namespace.py +0 -0
  22. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/namespace_analyzer.py +0 -0
  23. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
  24. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/py.typed +0 -0
  25. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/__init__.py +0 -0
  26. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/ast.py +0 -0
  27. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/markdownformatter.py +0 -0
  28. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/match.py +0 -0
  29. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/robot_path.py +0 -0
  30. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/stubs.py +0 -0
  31. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/variables.py +0 -0
  32. {robotcode_robot-0.93.0 → robotcode_robot-0.93.1}/src/robotcode/robot/utils/visitor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-robot
3
- Version: 0.93.0
3
+ Version: 0.93.1
4
4
  Summary: Support classes for RobotCode for handling Robot Framework projects.
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
26
26
  Classifier: Typing :: Typed
27
27
  Requires-Python: >=3.8
28
28
  Requires-Dist: platformdirs<4.2.0,>=3.2.0
29
- Requires-Dist: robotcode-core==0.93.0
29
+ Requires-Dist: robotcode-core==0.93.1
30
30
  Requires-Dist: robotframework>=4.1.0
31
31
  Requires-Dist: tomli>=1.1.0; python_version < '3.11'
32
32
  Description-Content-Type: text/markdown
@@ -29,7 +29,7 @@ dependencies = [
29
29
  "robotframework>=4.1.0",
30
30
  "tomli>=1.1.0; python_version < '3.11'",
31
31
  "platformdirs>=3.2.0,<4.2.0",
32
- "robotcode-core==0.93.0",
32
+ "robotcode-core==0.93.1",
33
33
  ]
34
34
  dynamic = ["version"]
35
35
 
@@ -0,0 +1 @@
1
+ __version__ = "0.93.1"
@@ -1579,6 +1579,7 @@ class ImportsManager:
1579
1579
  scalar: str,
1580
1580
  base_dir: str = ".",
1581
1581
  variables: Optional[Dict[str, Any]] = None,
1582
+ ignore_errors: bool = False,
1582
1583
  ) -> Any:
1583
1584
  return replace_variables_scalar(
1584
1585
  scalar,
@@ -1586,4 +1587,5 @@ class ImportsManager:
1586
1587
  base_dir,
1587
1588
  self.get_resolvable_command_line_variables(),
1588
1589
  variables,
1590
+ ignore_errors=ignore_errors,
1589
1591
  )
@@ -711,6 +711,7 @@ class KeywordDoc(SourceEntity):
711
711
  add_signature: bool = True,
712
712
  header_level: int = 2,
713
713
  add_type: bool = True,
714
+ modify_doc_handler: Optional[Callable[[str], str]] = None,
714
715
  ) -> str:
715
716
  result = ""
716
717
 
@@ -723,12 +724,18 @@ class KeywordDoc(SourceEntity):
723
724
 
724
725
  result += f"##{'#' * header_level} Documentation:\n"
725
726
 
727
+ doc: Optional[str] = None
726
728
  if self.doc_format == ROBOT_DOC_FORMAT:
727
- result += MarkDownFormatter().format(self.doc)
729
+ doc = MarkDownFormatter().format(self.doc)
728
730
  elif self.doc_format == REST_DOC_FORMAT:
729
- result += convert_from_rest(self.doc)
731
+ doc = convert_from_rest(self.doc)
730
732
  else:
731
- result += self.doc
733
+ doc = self.doc
734
+
735
+ if doc is not None:
736
+ if modify_doc_handler is not None:
737
+ doc = modify_doc_handler(doc)
738
+ result += doc
732
739
 
733
740
  return result
734
741
 
@@ -1588,6 +1595,7 @@ def replace_variables_scalar(
1588
1595
  base_dir: str = ".",
1589
1596
  command_line_variables: Optional[Dict[str, Optional[Any]]] = None,
1590
1597
  variables: Optional[Dict[str, Optional[Any]]] = None,
1598
+ ignore_errors: bool = False,
1591
1599
  ) -> Any:
1592
1600
 
1593
1601
  _update_env(working_dir)
@@ -1595,9 +1603,13 @@ def replace_variables_scalar(
1595
1603
  if contains_variable(scalar, "$@&%"):
1596
1604
  robot_variables = resolve_robot_variables(working_dir, base_dir, command_line_variables, variables)
1597
1605
  if get_robot_version() >= (6, 1):
1598
- return VariableReplacer(robot_variables).replace_scalar(scalar.replace("\\", "\\\\"))
1606
+ return VariableReplacer(robot_variables).replace_scalar(
1607
+ scalar.replace("\\", "\\\\"), ignore_errors=ignore_errors
1608
+ )
1599
1609
 
1600
- return VariableReplacer(robot_variables.store).replace_scalar(scalar.replace("\\", "\\\\"))
1610
+ return VariableReplacer(robot_variables.store).replace_scalar(
1611
+ scalar.replace("\\", "\\\\"), ignore_errors=ignore_errors
1612
+ )
1601
1613
 
1602
1614
  return scalar.replace("\\", "\\\\")
1603
1615
 
@@ -1 +0,0 @@
1
- __version__ = "0.93.0"