robotcode-robot 0.90.0__tar.gz → 0.91.0__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.90.0 → robotcode_robot-0.91.0}/PKG-INFO +2 -2
  2. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/pyproject.toml +1 -1
  3. robotcode_robot-0.91.0/src/robotcode/robot/__version__.py +1 -0
  4. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/errors.py +2 -0
  5. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/namespace_analyzer.py +21 -0
  6. robotcode_robot-0.90.0/src/robotcode/robot/__version__.py +0 -1
  7. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/.gitignore +0 -0
  8. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/LICENSE.txt +0 -0
  9. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/README.md +0 -0
  10. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/__init__.py +0 -0
  11. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/config/__init__.py +0 -0
  12. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/config/loader.py +0 -0
  13. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/config/model.py +0 -0
  14. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/config/utils.py +0 -0
  15. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/__init__.py +0 -0
  16. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/diagnostics_modifier.py +0 -0
  17. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/document_cache_helper.py +0 -0
  18. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/entities.py +0 -0
  19. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/imports_manager.py +0 -0
  20. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/library_doc.py +0 -0
  21. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/model_helper.py +0 -0
  22. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/namespace.py +0 -0
  23. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/diagnostics/workspace_config.py +0 -0
  24. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/py.typed +0 -0
  25. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/__init__.py +0 -0
  26. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/ast.py +0 -0
  27. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/markdownformatter.py +0 -0
  28. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/match.py +0 -0
  29. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/robot_path.py +0 -0
  30. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/stubs.py +0 -0
  31. {robotcode_robot-0.90.0 → robotcode_robot-0.91.0}/src/robotcode/robot/utils/variables.py +0 -0
  32. {robotcode_robot-0.90.0 → robotcode_robot-0.91.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.90.0
3
+ Version: 0.91.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
@@ -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.90.0
29
+ Requires-Dist: robotcode-core==0.91.0
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.90.0",
32
+ "robotcode-core==0.91.0",
33
33
  ]
34
34
  dynamic = ["version"]
35
35
 
@@ -0,0 +1 @@
1
+ __version__ = "0.91.0"
@@ -33,3 +33,5 @@ class Error:
33
33
  KEYWORD_ERROR = "KeywordError"
34
34
  MULTIPLE_KEYWORDS = "MultipleKeywords"
35
35
  CONFLICTING_LIBRARY_KEYWORDS = "ConflictingLibraryKeywords"
36
+ INVALID_HEADER = "InvalidHeader"
37
+ DEPRECATED_HEADER = "DeprecatedHeader"
@@ -1117,6 +1117,27 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
1117
1117
  code=Error.DEPRECATED_HYPHEN_TAG,
1118
1118
  )
1119
1119
 
1120
+ def visit_SectionHeader(self, node: Statement) -> None: # noqa: N802
1121
+ if get_robot_version() >= (7, 0):
1122
+ token = node.get_token(*Token.HEADER_TOKENS)
1123
+ if not token.error:
1124
+ return
1125
+ if token.type == Token.INVALID_HEADER:
1126
+ self.append_diagnostics(
1127
+ range=range_from_node_or_token(node, token),
1128
+ message=token.error,
1129
+ severity=DiagnosticSeverity.ERROR,
1130
+ code=Error.INVALID_HEADER,
1131
+ )
1132
+ else:
1133
+ self.append_diagnostics(
1134
+ range=range_from_node_or_token(node, token),
1135
+ message=token.error,
1136
+ severity=DiagnosticSeverity.WARNING,
1137
+ tags=[DiagnosticTag.DEPRECATED],
1138
+ code=Error.DEPRECATED_HEADER,
1139
+ )
1140
+
1120
1141
  def visit_ReturnSetting(self, node: Statement) -> None: # noqa: N802
1121
1142
  if get_robot_version() >= (7, 0):
1122
1143
  token = node.get_token(Token.RETURN_SETTING)
@@ -1 +0,0 @@
1
- __version__ = "0.90.0"