robotcode-robot 0.68.3__py3-none-any.whl → 0.68.5__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/config/model.py +63 -51
- robotcode/robot/diagnostics/document_cache_helper.py +523 -0
- robotcode/robot/diagnostics/entities.py +2 -1
- robotcode/robot/diagnostics/errors.py +33 -0
- robotcode/robot/diagnostics/imports_manager.py +1499 -0
- robotcode/robot/diagnostics/model_helper.py +799 -0
- robotcode/robot/diagnostics/namespace.py +2165 -0
- robotcode/robot/diagnostics/namespace_analyzer.py +1121 -0
- robotcode/robot/diagnostics/workspace_config.py +50 -0
- robotcode/robot/utils/stubs.py +17 -1
- {robotcode_robot-0.68.3.dist-info → robotcode_robot-0.68.5.dist-info}/METADATA +2 -2
- robotcode_robot-0.68.5.dist-info/RECORD +29 -0
- robotcode_robot-0.68.3.dist-info/RECORD +0 -22
- {robotcode_robot-0.68.3.dist-info → robotcode_robot-0.68.5.dist-info}/WHEEL +0 -0
- {robotcode_robot-0.68.3.dist-info → robotcode_robot-0.68.5.dist-info}/licenses/LICENSE.txt +0 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
from dataclasses import dataclass, field
|
2
|
+
from enum import Enum
|
3
|
+
from typing import Dict, List, Optional
|
4
|
+
|
5
|
+
from robotcode.core.workspace import ConfigBase, config_section
|
6
|
+
|
7
|
+
|
8
|
+
class RpaMode(Enum):
|
9
|
+
DEFAULT = "default"
|
10
|
+
RPA = "rpa"
|
11
|
+
NORPA = "norpa"
|
12
|
+
|
13
|
+
|
14
|
+
@config_section("robotcode.robot")
|
15
|
+
@dataclass
|
16
|
+
class RobotConfig(ConfigBase):
|
17
|
+
args: List[str] = field(default_factory=list)
|
18
|
+
python_path: List[str] = field(default_factory=list)
|
19
|
+
env: Dict[str, str] = field(default_factory=dict)
|
20
|
+
variables: Dict[str, str] = field(default_factory=dict)
|
21
|
+
variable_files: List[str] = field(default_factory=list)
|
22
|
+
paths: List[str] = field(default_factory=list)
|
23
|
+
output_dir: Optional[str] = None
|
24
|
+
output_file: Optional[str] = None
|
25
|
+
log_file: Optional[str] = None
|
26
|
+
debug_file: Optional[str] = None
|
27
|
+
log_level: Optional[str] = None
|
28
|
+
mode: Optional[RpaMode] = None
|
29
|
+
languages: Optional[List[str]] = None
|
30
|
+
parsers: Optional[List[str]] = None
|
31
|
+
|
32
|
+
def get_rpa_mode(self) -> Optional[bool]:
|
33
|
+
if self.mode == RpaMode.RPA:
|
34
|
+
return True
|
35
|
+
if self.mode == RpaMode.NORPA:
|
36
|
+
return False
|
37
|
+
return None
|
38
|
+
|
39
|
+
|
40
|
+
class CacheSaveLocation(Enum):
|
41
|
+
WORKSPACE_FOLDER = "workspaceFolder"
|
42
|
+
WORKSPACE_STORAGE = "workspaceStorage"
|
43
|
+
|
44
|
+
|
45
|
+
@config_section("robotcode.analysis.cache")
|
46
|
+
@dataclass
|
47
|
+
class CacheConfig(ConfigBase):
|
48
|
+
save_location: CacheSaveLocation = CacheSaveLocation.WORKSPACE_STORAGE
|
49
|
+
ignored_libraries: List[str] = field(default_factory=list)
|
50
|
+
ignored_variables: List[str] = field(default_factory=list)
|
robotcode/robot/utils/stubs.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
from typing import Any, List, Optional, Protocol, runtime_checkable
|
3
|
+
from typing import Any, Dict, Iterator, List, Optional, Protocol, Set, runtime_checkable
|
4
4
|
|
5
5
|
|
6
6
|
@runtime_checkable
|
@@ -22,3 +22,19 @@ class HeaderAndBodyBlock(Protocol):
|
|
22
22
|
@runtime_checkable
|
23
23
|
class BodyBlock(Protocol):
|
24
24
|
body: List[Any]
|
25
|
+
|
26
|
+
|
27
|
+
@runtime_checkable
|
28
|
+
class Languages(Protocol):
|
29
|
+
languages: List[Any]
|
30
|
+
headers: Dict[str, str]
|
31
|
+
settings: Dict[str, str]
|
32
|
+
bdd_prefixes: Set[str]
|
33
|
+
true_strings: Set[str]
|
34
|
+
false_strings: Set[str]
|
35
|
+
|
36
|
+
def add_language(self, name: str) -> None:
|
37
|
+
...
|
38
|
+
|
39
|
+
def __iter__(self) -> Iterator[Any]:
|
40
|
+
...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.68.
|
3
|
+
Version: 0.68.5
|
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://github.com/sponsors/d-biehl
|
@@ -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.68.
|
29
|
+
Requires-Dist: robotcode-core==0.68.5
|
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,29 @@
|
|
1
|
+
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
robotcode/robot/__version__.py,sha256=256i1hm6PymdnrdWc3PwsJO5mdtq59V6Na_rAEAqP84,23
|
3
|
+
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
|
+
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
robotcode/robot/config/loader.py,sha256=RvFjU3fu5U4VlTSVDa0uUzZNAnpVdZwIy_4a0sXh6d0,5777
|
6
|
+
robotcode/robot/config/model.py,sha256=Ne8oUIuZbzOwQC5dxnNST7BDS3AzXIFiKvYU3kTY9B4,82330
|
7
|
+
robotcode/robot/config/utils.py,sha256=mNNE8Uq5U78_OPwhOdZjtt1HufczyEHogGMB0azRcC4,2651
|
8
|
+
robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
+
robotcode/robot/diagnostics/document_cache_helper.py,sha256=RyP1WIzI-eq8jYwfFuCs2zbdEVbcEYx5pxomt9Amolg,19823
|
10
|
+
robotcode/robot/diagnostics/entities.py,sha256=iC7EfRCLePF-fWxgWtA9zRQ46DPAw7X8qZkhzfMV5qI,10443
|
11
|
+
robotcode/robot/diagnostics/errors.py,sha256=VavgWYuHoW5sTT16j2rl9hxMhWxBKNSFsNmHWPzARQQ,1413
|
12
|
+
robotcode/robot/diagnostics/imports_manager.py,sha256=sGVHDi2KHot3dlkjLOyMXQyvjRMpEAB_qND-Pjh1c-Q,53213
|
13
|
+
robotcode/robot/diagnostics/library_doc.py,sha256=KTAVn5JGiUApv2jkkL_A3yDXZSvDiqu1-J1RfqdmTBw,96954
|
14
|
+
robotcode/robot/diagnostics/model_helper.py,sha256=wkh2ltduJkl8YPU1UVltgrpRAgLZEAOqgfSsaSF9X54,29858
|
15
|
+
robotcode/robot/diagnostics/namespace.py,sha256=n40pdkH5MZwwKalcnfXnzakwZTDPFZWKeW99bgNLue0,83765
|
16
|
+
robotcode/robot/diagnostics/namespace_analyzer.py,sha256=pLAXNPhe2ll21ckkqJ5luK6ZQtEMylKq2aqzE2NwsPs,46766
|
17
|
+
robotcode/robot/diagnostics/workspace_config.py,sha256=UtewdaT0ToexuvwDj5Q8Yk6NlUzHpe7ewJnxpOcVAg8,1560
|
18
|
+
robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
|
19
|
+
robotcode/robot/utils/ast.py,sha256=N7PobxXjpPWwv6UBa-GBn5wn6RAsiRm8unP6UZt0P6M,10193
|
20
|
+
robotcode/robot/utils/markdownformatter.py,sha256=h4s18lQ8auHLxsMKYIgJQ2p5d_K_PTaJuCtG-xdS-cg,11653
|
21
|
+
robotcode/robot/utils/match.py,sha256=jxKXVpv0SHw_LxsDc1vgOxSGGtcV_9eO9cOVj4MAgIo,527
|
22
|
+
robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6v2LRN0,1786
|
23
|
+
robotcode/robot/utils/stubs.py,sha256=eFVNqonOehFn2-_2SFuO9Aa8OLb5jnRlkfxO5rG5HMI,764
|
24
|
+
robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
|
25
|
+
robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
|
26
|
+
robotcode_robot-0.68.5.dist-info/METADATA,sha256=rqZu2_um3avpKeoM84gpPpO8pQwHSNEkeKyp-YRgwSc,2209
|
27
|
+
robotcode_robot-0.68.5.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
|
28
|
+
robotcode_robot-0.68.5.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
29
|
+
robotcode_robot-0.68.5.dist-info/RECORD,,
|
@@ -1,22 +0,0 @@
|
|
1
|
-
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
robotcode/robot/__version__.py,sha256=xRJMxqYumw--dgiB8hcw0gOtesmpgdEhqMW15odLIvU,23
|
3
|
-
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
|
-
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
robotcode/robot/config/loader.py,sha256=RvFjU3fu5U4VlTSVDa0uUzZNAnpVdZwIy_4a0sXh6d0,5777
|
6
|
-
robotcode/robot/config/model.py,sha256=MsLye21oCpjSeaaeU1VqhKomGX3GUqZ43eaFgf3OVXg,81856
|
7
|
-
robotcode/robot/config/utils.py,sha256=mNNE8Uq5U78_OPwhOdZjtt1HufczyEHogGMB0azRcC4,2651
|
8
|
-
robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
robotcode/robot/diagnostics/entities.py,sha256=nyItwiHQVHOAmocvCS6C0lQZhNTdt_L7CUzYQQEHsus,10456
|
10
|
-
robotcode/robot/diagnostics/library_doc.py,sha256=KTAVn5JGiUApv2jkkL_A3yDXZSvDiqu1-J1RfqdmTBw,96954
|
11
|
-
robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
|
12
|
-
robotcode/robot/utils/ast.py,sha256=N7PobxXjpPWwv6UBa-GBn5wn6RAsiRm8unP6UZt0P6M,10193
|
13
|
-
robotcode/robot/utils/markdownformatter.py,sha256=h4s18lQ8auHLxsMKYIgJQ2p5d_K_PTaJuCtG-xdS-cg,11653
|
14
|
-
robotcode/robot/utils/match.py,sha256=jxKXVpv0SHw_LxsDc1vgOxSGGtcV_9eO9cOVj4MAgIo,527
|
15
|
-
robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6v2LRN0,1786
|
16
|
-
robotcode/robot/utils/stubs.py,sha256=zFMAAl3xitfVW4tS2AMNpS8KAG9IRp6pZ8AQLL9FT_4,417
|
17
|
-
robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
|
18
|
-
robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
|
19
|
-
robotcode_robot-0.68.3.dist-info/METADATA,sha256=HzbuD50vrl1wfneiXLsX2i2gX5iDL2p9nlJTONgoBEU,2209
|
20
|
-
robotcode_robot-0.68.3.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
|
21
|
-
robotcode_robot-0.68.3.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
22
|
-
robotcode_robot-0.68.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|