Skip to content

Commit 814454a

Browse files
committed
chore: add some more common configuration options
1 parent 4dc2714 commit 814454a

File tree

16 files changed

+727
-76
lines changed

16 files changed

+727
-76
lines changed

.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
{
66
"version": "0.2.0",
77
"configurations": [
8+
{
9+
"name": "Python: Debug in terminal",
10+
"type": "python",
11+
"request": "launch",
12+
"purpose": ["debug-in-terminal"],
13+
"justMyCode": false
14+
},
815
{
916
"name": "Python: RobotCode.Runner",
1017
"type": "python",

etc/robot.json

Lines changed: 279 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,279 @@
1+
{
2+
"title": "ParsingModel[RobotConfig]",
3+
"$ref": "#/definitions/RobotConfig",
4+
"definitions": {
5+
"Mode": {
6+
"title": "Mode",
7+
"description": "Run mode for Robot Framework.",
8+
"enum": [
9+
"default",
10+
"rpa",
11+
"norpa"
12+
]
13+
},
14+
"EnvironmentConfig": {
15+
"title": "EnvironmentConfig",
16+
"type": "object",
17+
"properties": {
18+
"args": {
19+
"title": "Args",
20+
"description": "Extra arguments to be passed to Robot Framework\n\nExamples:\n```toml\nargs = [\"-t\", \"abc\"]\n```\n",
21+
"type": "array",
22+
"items": {
23+
"type": "string"
24+
}
25+
},
26+
"documentation": {
27+
"title": "Documentation",
28+
"description": "Documentation for the test suite.",
29+
"type": "string"
30+
},
31+
"python_path": {
32+
"title": "Python Path",
33+
"description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython_path = [\"./lib\", \"./resources\"]\n```\n",
34+
"type": "array",
35+
"items": {
36+
"type": "string"
37+
}
38+
},
39+
"env": {
40+
"title": "Env",
41+
"description": "Environment variables to be set before running tests.\n\nExamples:\n```toml\n[env]\nTEST_VAR = \"test\"\nSECRET = \"password\"\n```\n",
42+
"type": "object",
43+
"additionalProperties": {
44+
"type": "string"
45+
}
46+
},
47+
"variables": {
48+
"title": "Variables",
49+
"type": "object"
50+
},
51+
"variable_files": {
52+
"title": "Variable Files",
53+
"type": "array",
54+
"items": {
55+
"type": "string"
56+
}
57+
},
58+
"paths": {
59+
"title": "Paths",
60+
"type": "array",
61+
"items": {
62+
"type": "string"
63+
}
64+
},
65+
"output_dir": {
66+
"title": "Output Dir",
67+
"type": "string"
68+
},
69+
"output_file": {
70+
"title": "Output File",
71+
"type": "string"
72+
},
73+
"log_file": {
74+
"title": "Log File",
75+
"type": "string"
76+
},
77+
"debug_file": {
78+
"title": "Debug File",
79+
"type": "string"
80+
},
81+
"log_level": {
82+
"title": "Log Level",
83+
"type": "string"
84+
},
85+
"console": {
86+
"title": "Console",
87+
"type": "string"
88+
},
89+
"mode": {
90+
"$ref": "#/definitions/Mode"
91+
},
92+
"meta_data": {
93+
"title": "Meta Data",
94+
"type": "array",
95+
"items": {
96+
"type": "string"
97+
}
98+
},
99+
"languages": {
100+
"title": "Languages",
101+
"type": "array",
102+
"items": {
103+
"type": "string"
104+
}
105+
},
106+
"parsers": {
107+
"title": "Parsers",
108+
"type": "object",
109+
"additionalProperties": {
110+
"type": "array",
111+
"items": {}
112+
}
113+
},
114+
"pre_run_modifiers": {
115+
"title": "Pre Run Modifiers",
116+
"type": "object",
117+
"additionalProperties": {
118+
"type": "array",
119+
"items": {}
120+
}
121+
},
122+
"pre_rebot_modifiers": {
123+
"title": "Pre Rebot Modifiers",
124+
"type": "object",
125+
"additionalProperties": {
126+
"type": "array",
127+
"items": {}
128+
}
129+
},
130+
"listeners": {
131+
"title": "Listeners",
132+
"type": "object",
133+
"additionalProperties": {
134+
"type": "array",
135+
"items": {}
136+
}
137+
},
138+
"detached": {
139+
"title": "Detached",
140+
"default": false,
141+
"type": "boolean"
142+
}
143+
}
144+
},
145+
"RobotConfig": {
146+
"title": "RobotConfig",
147+
"type": "object",
148+
"properties": {
149+
"args": {
150+
"title": "Args",
151+
"description": "Extra arguments to be passed to Robot Framework\n\nExamples:\n```toml\nargs = [\"-t\", \"abc\"]\n```\n",
152+
"type": "array",
153+
"items": {
154+
"type": "string"
155+
}
156+
},
157+
"documentation": {
158+
"title": "Documentation",
159+
"description": "Documentation for the test suite.",
160+
"type": "string"
161+
},
162+
"python_path": {
163+
"title": "Python Path",
164+
"description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython_path = [\"./lib\", \"./resources\"]\n```\n",
165+
"type": "array",
166+
"items": {
167+
"type": "string"
168+
}
169+
},
170+
"env": {
171+
"title": "Env",
172+
"description": "Environment variables to be set before running tests.\n\nExamples:\n```toml\n[env]\nTEST_VAR = \"test\"\nSECRET = \"password\"\n```\n",
173+
"type": "object",
174+
"additionalProperties": {
175+
"type": "string"
176+
}
177+
},
178+
"variables": {
179+
"title": "Variables",
180+
"type": "object"
181+
},
182+
"variable_files": {
183+
"title": "Variable Files",
184+
"type": "array",
185+
"items": {
186+
"type": "string"
187+
}
188+
},
189+
"paths": {
190+
"title": "Paths",
191+
"type": "array",
192+
"items": {
193+
"type": "string"
194+
}
195+
},
196+
"output_dir": {
197+
"title": "Output Dir",
198+
"type": "string"
199+
},
200+
"output_file": {
201+
"title": "Output File",
202+
"type": "string"
203+
},
204+
"log_file": {
205+
"title": "Log File",
206+
"type": "string"
207+
},
208+
"debug_file": {
209+
"title": "Debug File",
210+
"type": "string"
211+
},
212+
"log_level": {
213+
"title": "Log Level",
214+
"type": "string"
215+
},
216+
"console": {
217+
"title": "Console",
218+
"type": "string"
219+
},
220+
"mode": {
221+
"$ref": "#/definitions/Mode"
222+
},
223+
"meta_data": {
224+
"title": "Meta Data",
225+
"type": "array",
226+
"items": {
227+
"type": "string"
228+
}
229+
},
230+
"languages": {
231+
"title": "Languages",
232+
"type": "array",
233+
"items": {
234+
"type": "string"
235+
}
236+
},
237+
"parsers": {
238+
"title": "Parsers",
239+
"type": "object",
240+
"additionalProperties": {
241+
"type": "array",
242+
"items": {}
243+
}
244+
},
245+
"pre_run_modifiers": {
246+
"title": "Pre Run Modifiers",
247+
"type": "object",
248+
"additionalProperties": {
249+
"type": "array",
250+
"items": {}
251+
}
252+
},
253+
"pre_rebot_modifiers": {
254+
"title": "Pre Rebot Modifiers",
255+
"type": "object",
256+
"additionalProperties": {
257+
"type": "array",
258+
"items": {}
259+
}
260+
},
261+
"listeners": {
262+
"title": "Listeners",
263+
"type": "object",
264+
"additionalProperties": {
265+
"type": "array",
266+
"items": {}
267+
}
268+
},
269+
"configs": {
270+
"title": "Configs",
271+
"type": "object",
272+
"additionalProperties": {
273+
"$ref": "#/definitions/EnvironmentConfig"
274+
}
275+
}
276+
}
277+
}
278+
}
279+
}

packages/analyze/robotcode/analyze/cli/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
import sys
2-
from pathlib import Path
3-
from typing import TYPE_CHECKING, Any, List, Optional, Tuple, Union, cast
1+
from typing import Tuple, Union
42

53
import click
6-
from robot.errors import DataError, Information
7-
from robot.run import USAGE, RobotFramework
4+
from robot.run import USAGE
85
from robot.version import get_full_version
96

10-
from robotcode.core.dataclasses import from_dict
11-
127
from ..__version__ import __version__
138

149

0 commit comments

Comments
 (0)