robotcode-robot 0.88.0__tar.gz → 0.89.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/PKG-INFO +2 -2
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/pyproject.toml +1 -1
- robotcode_robot-0.89.1/src/robotcode/robot/__version__.py +1 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/namespace.py +1 -1
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/ast.py +16 -3
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/markdownformatter.py +1 -1
- robotcode_robot-0.88.0/src/robotcode/robot/__version__.py +0 -1
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/.gitignore +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/LICENSE.txt +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/README.md +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/__init__.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/config/__init__.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/config/loader.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/config/model.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/config/utils.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/__init__.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/diagnostics_modifier.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/entities.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/errors.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/imports_manager.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/library_doc.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/namespace_analyzer.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/py.typed +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/__init__.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/match.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/robot_path.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/stubs.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/variables.py +0 -0
- {robotcode_robot-0.88.0 → robotcode_robot-0.89.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.
|
3
|
+
Version: 0.89.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.
|
29
|
+
Requires-Dist: robotcode-core==0.89.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
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.89.1"
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/namespace.py
RENAMED
@@ -538,7 +538,7 @@ class BlockVariableVisitor(OnlyArgumentsVisitor):
|
|
538
538
|
source=self.namespace.source,
|
539
539
|
)
|
540
540
|
|
541
|
-
if var_name not in self._results or type(self._results[var_name]) is type(var):
|
541
|
+
if var_name not in self._results or type(self._results[var_name]) is not type(var):
|
542
542
|
if isinstance(var, LocalVariableDefinition) or not any(
|
543
543
|
l for l in self.namespace.get_global_variables() if l.matcher == var.matcher
|
544
544
|
):
|
@@ -225,6 +225,21 @@ def _tokenize_no_variables(token: Token) -> Iterator[Token]:
|
|
225
225
|
yield token
|
226
226
|
|
227
227
|
|
228
|
+
if get_robot_version() < (5, 0):
|
229
|
+
ALLOWED_TOKEN_TYPES = {
|
230
|
+
*Token.ALLOW_VARIABLES,
|
231
|
+
Token.KEYWORD,
|
232
|
+
Token.ASSIGN,
|
233
|
+
}
|
234
|
+
else:
|
235
|
+
ALLOWED_TOKEN_TYPES = {
|
236
|
+
*Token.ALLOW_VARIABLES,
|
237
|
+
Token.KEYWORD,
|
238
|
+
Token.ASSIGN,
|
239
|
+
Token.OPTION,
|
240
|
+
}
|
241
|
+
|
242
|
+
|
228
243
|
def tokenize_variables(
|
229
244
|
token: Token,
|
230
245
|
identifiers: str = "$@&%",
|
@@ -233,9 +248,7 @@ def tokenize_variables(
|
|
233
248
|
extra_types: Optional[Set[str]] = None,
|
234
249
|
) -> Iterator[Token]:
|
235
250
|
if token.type not in {
|
236
|
-
*
|
237
|
-
Token.KEYWORD,
|
238
|
-
Token.ASSIGN,
|
251
|
+
*ALLOWED_TOKEN_TYPES,
|
239
252
|
*(extra_types if extra_types is not None else set()),
|
240
253
|
}:
|
241
254
|
return _tokenize_no_variables(token)
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/utils/markdownformatter.py
RENAMED
@@ -120,7 +120,7 @@ class LinkFormatter:
|
|
120
120
|
def _format_url(self, text: str, format_as_image: bool = True) -> str:
|
121
121
|
if "://" not in text:
|
122
122
|
return text
|
123
|
-
return self._url.sub(
|
123
|
+
return self._url.sub(lambda m: self._replace_url(format_as_image, m), text)
|
124
124
|
|
125
125
|
def _replace_url(self, format_as_image: bool, match: re.Match[str]) -> str:
|
126
126
|
pre = match.group(1)
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.88.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/entities.py
RENAMED
File without changes
|
File without changes
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/imports_manager.py
RENAMED
File without changes
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/library_doc.py
RENAMED
File without changes
|
{robotcode_robot-0.88.0 → robotcode_robot-0.89.1}/src/robotcode/robot/diagnostics/model_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|