robotcode-robot 0.98.0__tar.gz → 0.99.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/PKG-INFO +2 -2
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/pyproject.toml +1 -1
- robotcode_robot-0.99.0/src/robotcode/robot/__version__.py +1 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/errors.py +1 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/namespace.py +28 -4
- robotcode_robot-0.98.0/src/robotcode/robot/__version__.py +0 -1
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/.gitignore +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/LICENSE.txt +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/README.md +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/__init__.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/config/__init__.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/config/loader.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/config/model.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/config/utils.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/__init__.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/data_cache.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/diagnostics_modifier.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/entities.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/imports_manager.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/keyword_finder.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/library_doc.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/namespace_analyzer.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/py.typed +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/__init__.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/ast.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/markdownformatter.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/match.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/robot_path.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/stubs.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/variables.py +0 -0
- {robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/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.99.0
|
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
|
@@ -25,7 +25,7 @@ Classifier: Topic :: Utilities
|
|
25
25
|
Classifier: Typing :: Typed
|
26
26
|
Requires-Python: >=3.8
|
27
27
|
Requires-Dist: platformdirs<4.4.0,>=3.2.0
|
28
|
-
Requires-Dist: robotcode-core==0.
|
28
|
+
Requires-Dist: robotcode-core==0.99.0
|
29
29
|
Requires-Dist: robotframework>=4.1.0
|
30
30
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
31
31
|
Description-Content-Type: text/markdown
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.99.0"
|
@@ -10,6 +10,7 @@ class Error:
|
|
10
10
|
KEYWORD_NOT_FOUND = "KeywordNotFound"
|
11
11
|
LIBRARY_CONTAINS_NO_KEYWORDS = "LibraryContainsNoKeywords"
|
12
12
|
POSSIBLE_CIRCULAR_IMPORT = "PossibleCircularImport"
|
13
|
+
CIRCULAR_IMPORT = "CircularImport"
|
13
14
|
RESOURCE_EMPTY = "ResourceEmpty"
|
14
15
|
IMPORT_CONTAINS_ERRORS = "ImportContainsErrors"
|
15
16
|
RECURSIVE_IMPORT = "RecursiveImport"
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/namespace.py
RENAMED
@@ -1276,11 +1276,12 @@ class Namespace:
|
|
1276
1276
|
)
|
1277
1277
|
return None
|
1278
1278
|
|
1279
|
-
if self.source
|
1279
|
+
if same_file(self.source, source):
|
1280
1280
|
if parent_import:
|
1281
1281
|
self.append_diagnostics(
|
1282
1282
|
range=parent_import.range,
|
1283
|
-
message="Possible circular import."
|
1283
|
+
message=f"Possible circular import detected, Resource file'{Path(self.source).name}' "
|
1284
|
+
"might reference itself directly or through other resource files",
|
1284
1285
|
severity=DiagnosticSeverity.INFORMATION,
|
1285
1286
|
source=DIAGNOSTICS_SOURCE_NAME,
|
1286
1287
|
related_information=(
|
@@ -1298,6 +1299,15 @@ class Namespace:
|
|
1298
1299
|
),
|
1299
1300
|
code=Error.POSSIBLE_CIRCULAR_IMPORT,
|
1300
1301
|
)
|
1302
|
+
else:
|
1303
|
+
self.append_diagnostics(
|
1304
|
+
range=value.range,
|
1305
|
+
message=f"Circular import detected, Resource file '{Path(source).name}' "
|
1306
|
+
"is importing itself",
|
1307
|
+
severity=DiagnosticSeverity.INFORMATION,
|
1308
|
+
source=DIAGNOSTICS_SOURCE_NAME,
|
1309
|
+
code=Error.CIRCULAR_IMPORT,
|
1310
|
+
)
|
1301
1311
|
else:
|
1302
1312
|
result = self._get_resource_entry(
|
1303
1313
|
value.name,
|
@@ -1545,7 +1555,14 @@ class Namespace:
|
|
1545
1555
|
(
|
1546
1556
|
e
|
1547
1557
|
for e in self._variables_imports.values()
|
1548
|
-
if
|
1558
|
+
if (
|
1559
|
+
(
|
1560
|
+
e.library_doc.source is not None
|
1561
|
+
and entry.library_doc.source is not None
|
1562
|
+
and same_file(e.library_doc.source, entry.library_doc.source)
|
1563
|
+
)
|
1564
|
+
or (e.library_doc.source is None and entry.library_doc.source is None)
|
1565
|
+
)
|
1549
1566
|
and e.alias == entry.alias
|
1550
1567
|
and e.args == entry.args
|
1551
1568
|
),
|
@@ -1610,7 +1627,14 @@ class Namespace:
|
|
1610
1627
|
(
|
1611
1628
|
e
|
1612
1629
|
for e in self._libraries.values()
|
1613
|
-
if
|
1630
|
+
if (
|
1631
|
+
(
|
1632
|
+
e.library_doc.source is not None
|
1633
|
+
and entry.library_doc.source is not None
|
1634
|
+
and same_file(e.library_doc.source, entry.library_doc.source)
|
1635
|
+
)
|
1636
|
+
or (e.library_doc.source is None and entry.library_doc.source is None)
|
1637
|
+
)
|
1614
1638
|
and e.library_doc.member_name == entry.library_doc.member_name
|
1615
1639
|
and e.alias == entry.alias
|
1616
1640
|
and e.args == entry.args
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.98.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.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/__init__.py
RENAMED
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/data_cache.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/entities.py
RENAMED
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/imports_manager.py
RENAMED
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/keyword_finder.py
RENAMED
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/diagnostics/library_doc.py
RENAMED
File without changes
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/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
|
{robotcode_robot-0.98.0 → robotcode_robot-0.99.0}/src/robotcode/robot/utils/markdownformatter.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|