robotcode-robot 0.93.0__py3-none-any.whl → 0.93.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- robotcode/robot/__version__.py +1 -1
- robotcode/robot/diagnostics/imports_manager.py +2 -0
- robotcode/robot/diagnostics/library_doc.py +17 -5
- {robotcode_robot-0.93.0.dist-info → robotcode_robot-0.93.1.dist-info}/METADATA +2 -2
- {robotcode_robot-0.93.0.dist-info → robotcode_robot-0.93.1.dist-info}/RECORD +7 -7
- {robotcode_robot-0.93.0.dist-info → robotcode_robot-0.93.1.dist-info}/WHEEL +0 -0
- {robotcode_robot-0.93.0.dist-info → robotcode_robot-0.93.1.dist-info}/licenses/LICENSE.txt +0 -0
robotcode/robot/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.93.
|
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
|
-
|
729
|
+
doc = MarkDownFormatter().format(self.doc)
|
728
730
|
elif self.doc_format == REST_DOC_FORMAT:
|
729
|
-
|
731
|
+
doc = convert_from_rest(self.doc)
|
730
732
|
else:
|
731
|
-
|
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(
|
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(
|
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,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.93.
|
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.
|
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
|
@@ -1,5 +1,5 @@
|
|
1
1
|
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
robotcode/robot/__version__.py,sha256=
|
2
|
+
robotcode/robot/__version__.py,sha256=mOkfvVAX57vJFL_uDFmwMpNYuSUZPjaG1EtokdevKqg,23
|
3
3
|
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
4
|
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
robotcode/robot/config/loader.py,sha256=bNJwr_XdCoUzpG2ag0BH33PIfiCwn0GMxn7q_Sw3zOk,8103
|
@@ -10,8 +10,8 @@ robotcode/robot/diagnostics/diagnostics_modifier.py,sha256=3dDsu8-ET6weIvv7Sk3IQ
|
|
10
10
|
robotcode/robot/diagnostics/document_cache_helper.py,sha256=MlOPXC3mUVjNB2rHn5UJK7NnUPa8S4mE3qojILOi_Mk,23756
|
11
11
|
robotcode/robot/diagnostics/entities.py,sha256=dWZFSrAuW9wzW9AEDSr-stseexLbJIYfdScfAbBj4FY,11002
|
12
12
|
robotcode/robot/diagnostics/errors.py,sha256=HCE0h0_ui1tx-6pJHs0r4s09ZHmArYwKUo-_lBl9K-4,1600
|
13
|
-
robotcode/robot/diagnostics/imports_manager.py,sha256=
|
14
|
-
robotcode/robot/diagnostics/library_doc.py,sha256=
|
13
|
+
robotcode/robot/diagnostics/imports_manager.py,sha256=3j_HwOxkdT_ulUPBWcaGjSr0mwiORyBCBoRwBKFIw3g,57265
|
14
|
+
robotcode/robot/diagnostics/library_doc.py,sha256=MSZ3Mx1knIKRCEzBFDioBogmlSqtit_PRlg7muHjrVY,98560
|
15
15
|
robotcode/robot/diagnostics/model_helper.py,sha256=_5ixKKMrb-nY-uvV8_WjJ1rlNlz7gT7kHM5NYi_hjVg,30232
|
16
16
|
robotcode/robot/diagnostics/namespace.py,sha256=lH5RReu-fW0g8CZBh9LKWHItCZh14D-XFvFdYUvBoDg,90151
|
17
17
|
robotcode/robot/diagnostics/namespace_analyzer.py,sha256=3eC1xEBm_foCnqoHk8Cj6O11UXOHcHxWnfuKP8M5KIQ,51369
|
@@ -24,7 +24,7 @@ robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6
|
|
24
24
|
robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
|
25
25
|
robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
|
26
26
|
robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
|
27
|
-
robotcode_robot-0.93.
|
28
|
-
robotcode_robot-0.93.
|
29
|
-
robotcode_robot-0.93.
|
30
|
-
robotcode_robot-0.93.
|
27
|
+
robotcode_robot-0.93.1.dist-info/METADATA,sha256=20VDpGZB3N7wVZTMGnHL0ouck8jWgBVeXsd3WCr56sc,2240
|
28
|
+
robotcode_robot-0.93.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
29
|
+
robotcode_robot-0.93.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
30
|
+
robotcode_robot-0.93.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|