robotcode 0.92.0__py3-none-any.whl → 0.93.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robotcode/cli/__init__.py +40 -2
- robotcode/cli/__version__.py +1 -1
- robotcode/cli/commands/config.py +19 -5
- robotcode/cli/commands/profiles.py +10 -2
- {robotcode-0.92.0.dist-info → robotcode-0.93.1.dist-info}/METADATA +15 -12
- robotcode-0.93.1.dist-info/RECORD +12 -0
- robotcode-0.92.0.dist-info/RECORD +0 -12
- {robotcode-0.92.0.dist-info → robotcode-0.93.1.dist-info}/WHEEL +0 -0
- {robotcode-0.92.0.dist-info → robotcode-0.93.1.dist-info}/entry_points.txt +0 -0
- {robotcode-0.92.0.dist-info → robotcode-0.93.1.dist-info}/licenses/LICENSE.txt +0 -0
robotcode/cli/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import logging
|
2
2
|
from pathlib import Path
|
3
|
-
from typing import List, Optional
|
3
|
+
from typing import List, Literal, Optional
|
4
4
|
|
5
5
|
import click
|
6
6
|
|
@@ -49,6 +49,21 @@ from .commands import config, profiles
|
|
49
49
|
If not specified, the default profile is used.
|
50
50
|
""",
|
51
51
|
)
|
52
|
+
@click.option(
|
53
|
+
"-r",
|
54
|
+
"--root",
|
55
|
+
"root",
|
56
|
+
type=click.Path(exists=True, path_type=Path, dir_okay=True, file_okay=False, resolve_path=True),
|
57
|
+
multiple=False,
|
58
|
+
show_envvar=True,
|
59
|
+
help="Specifies the root path to be used for the project. It will be automatically detected if not provided.",
|
60
|
+
)
|
61
|
+
@click.option(
|
62
|
+
"--no-vcs",
|
63
|
+
is_flag=True,
|
64
|
+
show_envvar=True,
|
65
|
+
help="Ignore version control system directories (e.g., .git, .hg) when detecting the project root.",
|
66
|
+
)
|
52
67
|
@click.option(
|
53
68
|
"-f",
|
54
69
|
"--format",
|
@@ -95,6 +110,22 @@ from .commands import config, profiles
|
|
95
110
|
show_default=True,
|
96
111
|
show_envvar=True,
|
97
112
|
)
|
113
|
+
@click.option(
|
114
|
+
"--log-format",
|
115
|
+
type=str,
|
116
|
+
help="Sets the log format. See python logging documentation for more information.",
|
117
|
+
default="%(name)s:%(levelname)s: %(message)s",
|
118
|
+
show_default=True,
|
119
|
+
show_envvar=True,
|
120
|
+
)
|
121
|
+
@click.option(
|
122
|
+
"--log-style",
|
123
|
+
type=click.Choice(["%", "{", "$"]),
|
124
|
+
help="Sets the log style. See python logging documentation for more information.",
|
125
|
+
default="%",
|
126
|
+
show_default=True,
|
127
|
+
show_envvar=True,
|
128
|
+
)
|
98
129
|
@click.option(
|
99
130
|
"--log-filename",
|
100
131
|
type=click.Path(
|
@@ -160,6 +191,8 @@ def robotcode(
|
|
160
191
|
app: Application,
|
161
192
|
config_files: Optional[List[Path]],
|
162
193
|
profiles: Optional[List[str]],
|
194
|
+
root: Optional[Path],
|
195
|
+
no_vcs: bool,
|
163
196
|
format: Optional[OutputFormat],
|
164
197
|
dry: bool,
|
165
198
|
verbose: bool,
|
@@ -167,6 +200,8 @@ def robotcode(
|
|
167
200
|
pager: Optional[bool],
|
168
201
|
log: bool,
|
169
202
|
log_level: str,
|
203
|
+
log_format: str,
|
204
|
+
log_style: Literal["%", "{", "$"],
|
170
205
|
log_filename: Optional[str],
|
171
206
|
log_calls: bool,
|
172
207
|
default_path: Optional[List[str]],
|
@@ -189,6 +224,8 @@ def robotcode(
|
|
189
224
|
app.config.profiles = profiles
|
190
225
|
app.config.dry = dry
|
191
226
|
app.config.verbose = verbose
|
227
|
+
app.config.root = root
|
228
|
+
app.config.no_vcs = no_vcs
|
192
229
|
|
193
230
|
if color is None:
|
194
231
|
app.config.colored_output = ColoredOutput.AUTO
|
@@ -210,7 +247,8 @@ def robotcode(
|
|
210
247
|
|
211
248
|
logging.basicConfig(
|
212
249
|
level=log_level,
|
213
|
-
format=
|
250
|
+
format=log_format,
|
251
|
+
style=log_style,
|
214
252
|
filename=log_filename,
|
215
253
|
)
|
216
254
|
|
robotcode/cli/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.93.1"
|
robotcode/cli/commands/config.py
CHANGED
@@ -2,7 +2,7 @@ import dataclasses
|
|
2
2
|
import os
|
3
3
|
from fnmatch import fnmatchcase
|
4
4
|
from pathlib import Path
|
5
|
-
from typing import Any, Callable, Dict, Iterable, List, Optional, Type, Union, get_args, get_origin
|
5
|
+
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union, get_args, get_origin
|
6
6
|
|
7
7
|
import click
|
8
8
|
|
@@ -64,7 +64,13 @@ def show(app: Application, single: bool, paths: List[Path]) -> None:
|
|
64
64
|
```
|
65
65
|
"""
|
66
66
|
try:
|
67
|
-
config_files, _, _ = get_config_files(
|
67
|
+
config_files, _, _ = get_config_files(
|
68
|
+
paths,
|
69
|
+
app.config.config_files,
|
70
|
+
root_folder=app.config.root,
|
71
|
+
no_vcs=app.config.no_vcs,
|
72
|
+
verbose_callback=app.verbose,
|
73
|
+
)
|
68
74
|
|
69
75
|
if single:
|
70
76
|
for file, _ in config_files:
|
@@ -123,7 +129,13 @@ def files(app: Application, paths: List[Path], user: bool = False) -> None:
|
|
123
129
|
"""
|
124
130
|
|
125
131
|
try:
|
126
|
-
config_files, _, discovered_by = get_config_files(
|
132
|
+
config_files, _, discovered_by = get_config_files(
|
133
|
+
paths,
|
134
|
+
app.config.config_files,
|
135
|
+
root_folder=app.config.root,
|
136
|
+
no_vcs=app.config.no_vcs,
|
137
|
+
verbose_callback=app.verbose,
|
138
|
+
)
|
127
139
|
|
128
140
|
result: Dict[str, Any] = {"files": [{"path": str(file), "type": type} for file, type in config_files]}
|
129
141
|
|
@@ -153,7 +165,7 @@ def files(app: Application, paths: List[Path], user: bool = False) -> None:
|
|
153
165
|
required=False,
|
154
166
|
)
|
155
167
|
@pass_application
|
156
|
-
def root(app: Application, paths:
|
168
|
+
def root(app: Application, paths: Tuple[Path, ...]) -> None:
|
157
169
|
"""\
|
158
170
|
Searches for the root folder of the project and prints them.
|
159
171
|
|
@@ -168,7 +180,9 @@ def root(app: Application, paths: List[Path]) -> None:
|
|
168
180
|
```
|
169
181
|
"""
|
170
182
|
|
171
|
-
root_folder, discovered_by = find_project_root(
|
183
|
+
root_folder, discovered_by = find_project_root(
|
184
|
+
*(paths or []), root_folder=app.config.root, no_vcs=app.config.no_vcs
|
185
|
+
)
|
172
186
|
|
173
187
|
if root_folder is None and (app.config.output_format is None or app.config.output_format == OutputFormat.TEXT):
|
174
188
|
raise click.ClickException("Cannot detect root folder. 😥")
|
@@ -40,7 +40,9 @@ def profiles() -> None:
|
|
40
40
|
def show(app: Application, no_evaluate: bool, paths: List[Path]) -> None:
|
41
41
|
"""Shows the given profile configuration."""
|
42
42
|
try:
|
43
|
-
config_files, _, _ = get_config_files(
|
43
|
+
config_files, _, _ = get_config_files(
|
44
|
+
paths, app.config.config_files, root_folder=app.config.root, verbose_callback=app.verbose
|
45
|
+
)
|
44
46
|
|
45
47
|
config = load_robot_config_from_path(*config_files, verbose_callback=app.verbose).combine_profiles(
|
46
48
|
*(app.config.profiles or []), verbose_callback=app.verbose, error_callback=app.error
|
@@ -73,7 +75,13 @@ def list(app: Application, paths: List[Path], show_hidden: bool = False, sort_by
|
|
73
75
|
"""Lists the defined profiles in the current configuration."""
|
74
76
|
|
75
77
|
try:
|
76
|
-
config_files, _, discovered_by = get_config_files(
|
78
|
+
config_files, _, discovered_by = get_config_files(
|
79
|
+
paths,
|
80
|
+
app.config.config_files,
|
81
|
+
root_folder=app.config.root,
|
82
|
+
no_vcs=app.config.no_vcs,
|
83
|
+
verbose_callback=app.verbose,
|
84
|
+
)
|
77
85
|
|
78
86
|
config = load_robot_config_from_path(*config_files, verbose_callback=app.verbose)
|
79
87
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: robotcode
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.93.1
|
4
4
|
Summary: Command line interface for RobotCode
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
6
6
|
Project-URL: Donate, https://opencollective.com/robotcode
|
@@ -33,33 +33,36 @@ Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
|
|
33
33
|
Classifier: Topic :: Utilities
|
34
34
|
Classifier: Typing :: Typed
|
35
35
|
Requires-Python: >=3.8
|
36
|
-
Requires-Dist: robotcode-core==0.
|
37
|
-
Requires-Dist: robotcode-plugin==0.
|
38
|
-
Requires-Dist: robotcode-robot==0.
|
36
|
+
Requires-Dist: robotcode-core==0.93.1
|
37
|
+
Requires-Dist: robotcode-plugin==0.93.1
|
38
|
+
Requires-Dist: robotcode-robot==0.93.1
|
39
39
|
Provides-Extra: all
|
40
40
|
Requires-Dist: docutils; extra == 'all'
|
41
41
|
Requires-Dist: pyyaml>=5.4; extra == 'all'
|
42
42
|
Requires-Dist: rich; extra == 'all'
|
43
|
-
Requires-Dist: robotcode-analyze==0.
|
44
|
-
Requires-Dist: robotcode-debugger==0.
|
45
|
-
Requires-Dist: robotcode-language-server==0.
|
46
|
-
Requires-Dist: robotcode-
|
43
|
+
Requires-Dist: robotcode-analyze==0.93.1; extra == 'all'
|
44
|
+
Requires-Dist: robotcode-debugger==0.93.1; extra == 'all'
|
45
|
+
Requires-Dist: robotcode-language-server==0.93.1; extra == 'all'
|
46
|
+
Requires-Dist: robotcode-repl==0.93.1; extra == 'all'
|
47
|
+
Requires-Dist: robotcode-runner==0.93.1; extra == 'all'
|
47
48
|
Requires-Dist: robotframework-robocop>=2.0.0; extra == 'all'
|
48
49
|
Requires-Dist: robotframework-tidy>=2.0.0; extra == 'all'
|
49
50
|
Provides-Extra: analyze
|
50
|
-
Requires-Dist: robotcode-analyze==0.
|
51
|
+
Requires-Dist: robotcode-analyze==0.93.1; extra == 'analyze'
|
51
52
|
Provides-Extra: colored
|
52
53
|
Requires-Dist: rich; extra == 'colored'
|
53
54
|
Provides-Extra: debugger
|
54
|
-
Requires-Dist: robotcode-debugger==0.
|
55
|
+
Requires-Dist: robotcode-debugger==0.93.1; extra == 'debugger'
|
55
56
|
Provides-Extra: languageserver
|
56
|
-
Requires-Dist: robotcode-language-server==0.
|
57
|
+
Requires-Dist: robotcode-language-server==0.93.1; extra == 'languageserver'
|
57
58
|
Provides-Extra: lint
|
58
59
|
Requires-Dist: robotframework-robocop>=2.0.0; extra == 'lint'
|
60
|
+
Provides-Extra: repl
|
61
|
+
Requires-Dist: robotcode-repl==0.93.1; extra == 'repl'
|
59
62
|
Provides-Extra: rest
|
60
63
|
Requires-Dist: docutils; extra == 'rest'
|
61
64
|
Provides-Extra: runner
|
62
|
-
Requires-Dist: robotcode-runner==0.
|
65
|
+
Requires-Dist: robotcode-runner==0.93.1; extra == 'runner'
|
63
66
|
Provides-Extra: tidy
|
64
67
|
Requires-Dist: robotframework-tidy>=2.0.0; extra == 'tidy'
|
65
68
|
Provides-Extra: yaml
|
@@ -0,0 +1,12 @@
|
|
1
|
+
robotcode/cli/__init__.py,sha256=davaLdB53bWWMqm4BMmjktKlL0AyzOuMObZbNbmhiQE,8226
|
2
|
+
robotcode/cli/__main__.py,sha256=hX3nwROMTnsYGT1KS0rXUYrslu9sFzctYdAh66Rcckw,153
|
3
|
+
robotcode/cli/__version__.py,sha256=mOkfvVAX57vJFL_uDFmwMpNYuSUZPjaG1EtokdevKqg,23
|
4
|
+
robotcode/cli/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
5
|
+
robotcode/cli/commands/__init__.py,sha256=XJHRt_YwMO2Ni2EfL2aj4jkJXMVG6NGFTpzvSVgIRnQ,92
|
6
|
+
robotcode/cli/commands/config.py,sha256=84gG4LrIynfPbEQkQDYA3ZClg50ck32NZyUvAWw9g6w,10479
|
7
|
+
robotcode/cli/commands/profiles.py,sha256=GAyNsnz4vvybkEfktFTjDm-L4zkcntXZtBt385U9oRo,5897
|
8
|
+
robotcode-0.93.1.dist-info/METADATA,sha256=Ljvf7hO43xqr6gaqIcaTI0JaRNdsfH3p-wm5q4-TtbI,6758
|
9
|
+
robotcode-0.93.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
10
|
+
robotcode-0.93.1.dist-info/entry_points.txt,sha256=Pb4DKVVdJb5PboVl48njwk3DkKQHBJOL1A8KkpemqA8,58
|
11
|
+
robotcode-0.93.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
12
|
+
robotcode-0.93.1.dist-info/RECORD,,
|
@@ -1,12 +0,0 @@
|
|
1
|
-
robotcode/cli/__init__.py,sha256=L68nprRGdjQ27LvEfmg3QcrJXI74mMh8ccrwiA7U1DQ,7104
|
2
|
-
robotcode/cli/__main__.py,sha256=hX3nwROMTnsYGT1KS0rXUYrslu9sFzctYdAh66Rcckw,153
|
3
|
-
robotcode/cli/__version__.py,sha256=4oQqdZ-jW338RGQfLxI7hoQNb8tTR6y4hzWoJRPdI3o,23
|
4
|
-
robotcode/cli/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
5
|
-
robotcode/cli/commands/__init__.py,sha256=XJHRt_YwMO2Ni2EfL2aj4jkJXMVG6NGFTpzvSVgIRnQ,92
|
6
|
-
robotcode/cli/commands/config.py,sha256=Y8MmRDn0VVxC0T7GulK46bFKWXin3nm-aAtEH8b4tyM,10145
|
7
|
-
robotcode/cli/commands/profiles.py,sha256=NJ4bjKsvKHXQr1ILjB1H4mZYRgvwXyDKAtCpfSV6lYM,5720
|
8
|
-
robotcode-0.92.0.dist-info/METADATA,sha256=hNxnVnUbMTFkONZMYcFf_AaPh__RDWw9IpmNadm3MPY,6628
|
9
|
-
robotcode-0.92.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
10
|
-
robotcode-0.92.0.dist-info/entry_points.txt,sha256=Pb4DKVVdJb5PboVl48njwk3DkKQHBJOL1A8KkpemqA8,58
|
11
|
-
robotcode-0.92.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
12
|
-
robotcode-0.92.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|