rbx.cp 0.17.0__py3-none-any.whl → 0.17.2__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.
- rbx/__version__.py +1 -1
- rbx/box/cli.py +6 -0
- rbx/box/sanitizers/issue_stack.py +8 -5
- rbx/resources/presets/default/preset.rbx.yml +1 -1
- {rbx_cp-0.17.0.dist-info → rbx_cp-0.17.2.dist-info}/METADATA +1 -1
- {rbx_cp-0.17.0.dist-info → rbx_cp-0.17.2.dist-info}/RECORD +9 -9
- {rbx_cp-0.17.0.dist-info → rbx_cp-0.17.2.dist-info}/LICENSE +0 -0
- {rbx_cp-0.17.0.dist-info → rbx_cp-0.17.2.dist-info}/WHEEL +0 -0
- {rbx_cp-0.17.0.dist-info → rbx_cp-0.17.2.dist-info}/entry_points.txt +0 -0
rbx/__version__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.17.
|
1
|
+
__version__ = '0.17.2'
|
rbx/box/cli.py
CHANGED
@@ -667,6 +667,12 @@ async def stress(
|
|
667
667
|
'-s',
|
668
668
|
help='Whether to compile the solutions with sanitizers enabled.',
|
669
669
|
),
|
670
|
+
description: Optional[str] = typer.Option(
|
671
|
+
None,
|
672
|
+
'--description',
|
673
|
+
'-d',
|
674
|
+
help='Optional description of the stress test.',
|
675
|
+
),
|
670
676
|
):
|
671
677
|
if finder and not generator_args or generator_args and not finder:
|
672
678
|
console.console.print(
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import contextvars
|
2
2
|
import enum
|
3
3
|
from collections import OrderedDict
|
4
|
-
from typing import Callable, Optional, Tuple, Union
|
4
|
+
from typing import Callable, List, Optional, Tuple, Union
|
5
5
|
|
6
6
|
from rbx import console
|
7
7
|
|
@@ -25,7 +25,7 @@ class Issue:
|
|
25
25
|
return ''
|
26
26
|
|
27
27
|
|
28
|
-
IssueSection = OrderedDict[str, Union[Issue, 'IssueSection']]
|
28
|
+
IssueSection = OrderedDict[str, Union[List[Issue], 'IssueSection']]
|
29
29
|
|
30
30
|
|
31
31
|
class IssueAccumulator:
|
@@ -46,7 +46,9 @@ class IssueAccumulator:
|
|
46
46
|
current = sections
|
47
47
|
for k in section_key[:-1]:
|
48
48
|
current = current.setdefault(k, OrderedDict())
|
49
|
-
current
|
49
|
+
current.setdefault(section_key[-1], [])
|
50
|
+
current[section_key[-1]].append(issue)
|
51
|
+
|
50
52
|
return sections
|
51
53
|
|
52
54
|
def get_detailed_sections(self) -> IssueSection:
|
@@ -70,8 +72,9 @@ class IssueAccumulator:
|
|
70
72
|
child = tree.add(key)
|
71
73
|
if isinstance(value, OrderedDict):
|
72
74
|
print_section(value, child)
|
73
|
-
|
74
|
-
|
75
|
+
continue
|
76
|
+
for issue in value:
|
77
|
+
child.add(f'[error]{message_fn(issue)}[/error]')
|
75
78
|
|
76
79
|
print_section(sections, tree)
|
77
80
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
rbx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
rbx/__version__.py,sha256=
|
2
|
+
rbx/__version__.py,sha256=_Rht1U7O0iqV4kMTyJO_tsJf-qplw79SprZne1n4grA,23
|
3
3
|
rbx/annotations.py,sha256=_TkLhgZWiUyon3bonHwUo03ls1jY8LwgcR4bVgtgnc0,3519
|
4
4
|
rbx/autoenum.py,sha256=cusv8ClXRlDVvhZ8eDrtYcL_2peXlHugAey_ht8roXk,12025
|
5
5
|
rbx/box/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
rbx/box/builder.py,sha256=umrTdVAwvsOosBDVvDZ6kq1yWg3Z2Lxp2o1zK-V7BBk,3594
|
7
7
|
rbx/box/cd.py,sha256=_XAzb3kV1NUaaRs8hc9SGDo10O1yh2_gr1EiAKzfUjI,2711
|
8
8
|
rbx/box/checkers.py,sha256=mRovZyTZdySFEaYFVc3Lc-xgEsu6F9FjVPOxDwub7aY,13226
|
9
|
-
rbx/box/cli.py,sha256=
|
9
|
+
rbx/box/cli.py,sha256=MURZQ6u9gRQc9B4DWq-KDwNJDKoBlWV-wP8vwD-45d4,29885
|
10
10
|
rbx/box/code.py,sha256=TWF-o8fTh5nAtndKuO9Ti7KL-Ye6mkOoUnRzS4POrfw,25524
|
11
11
|
rbx/box/compile.py,sha256=Kzn5mEQu4vb91W9vjyt0DS6cfPJzFLTUoowFj7uHLUo,2539
|
12
12
|
rbx/box/contest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -59,7 +59,7 @@ rbx/box/presets/lock_schema.py,sha256=8PKL7UMX4dkdVpCPLwYtaNIIrZpAfHGvTfnF8bRFed
|
|
59
59
|
rbx/box/presets/schema.py,sha256=5Nw72QrSsA39cUCCLlVfSYMImK_-TfJEGu5TSIDv3W8,2918
|
60
60
|
rbx/box/remote.py,sha256=hCdiZSmh6Y1vnSEwLZ_gtAMYV-WLVlU3iVnvcObRpRc,5274
|
61
61
|
rbx/box/retries.py,sha256=BZsi4sYBjm3VK5zb_pBQSYQuKo3ZntmtEFoVPZHg4QI,4982
|
62
|
-
rbx/box/sanitizers/issue_stack.py,sha256=
|
62
|
+
rbx/box/sanitizers/issue_stack.py,sha256=nHtF8bksTIbvOlmDEy72SoXnXfQyIDBHU_3NOn-X1Ss,3534
|
63
63
|
rbx/box/sanitizers/warning_stack.py,sha256=6-rr3dkMq6MpfjrVZ8lSQjF4RZ5YzZSAPMzHCfm-6h4,2876
|
64
64
|
rbx/box/schema.py,sha256=3rkRkBiyZw0Dq3GMKX1zh5BE4-aSURFZogAQGoYqVck,20006
|
65
65
|
rbx/box/setter_config.py,sha256=vyZbsbgkjelZOblMLX5A1j4CLqPNQkrv83IZr_3-46Y,5301
|
@@ -201,7 +201,7 @@ rbx/resources/presets/default/contest/statement/info.rbx.tex,sha256=Wz8Tbmi2lPWM
|
|
201
201
|
rbx/resources/presets/default/contest/statement/instructions.tex,sha256=JG_eR13ukZgEahrrmrbg40H8cUzpoUE8QLocihN-fZ8,2414
|
202
202
|
rbx/resources/presets/default/contest/statement/logo.png,sha256=RLNYmZoc-BR6AZKkmr4UEg3h01YeFzvy604jMAQC7aA,414485
|
203
203
|
rbx/resources/presets/default/env.rbx.yml,sha256=quSPG5Xs9KroYLATNLPNtORLGRWtrLLt2Fx81T1enAM,1692
|
204
|
-
rbx/resources/presets/default/preset.rbx.yml,sha256=
|
204
|
+
rbx/resources/presets/default/preset.rbx.yml,sha256=5pBkoETHw5tApH2mxveRwEmS1tq2lqtlq2oL4hn6TXs,520
|
205
205
|
rbx/resources/presets/default/problem/.gitignore,sha256=1rt95y9Q7ZHIQn28JyZQUdD5zkpRosjAl9ZqoQmX2cE,149
|
206
206
|
rbx/resources/presets/default/problem/gens/gen.cpp,sha256=rn6sGRjZ1sFE1Rq02r6488iquY9xTrutcvLv4d1sohA,178
|
207
207
|
rbx/resources/presets/default/problem/manual_tests/samples/000.in,sha256=w66OEtCJGqjUNj8cJrqgImgGVm8W_OlIUtF255ds-ow,4
|
@@ -223,8 +223,8 @@ rbx/resources/templates/rbx.h,sha256=0AZds9R0PmuPgnlTENb33Y81LW0LlnmOJFaoN8oG3Yo
|
|
223
223
|
rbx/resources/templates/template.cpp,sha256=xXWpWo7fa7HfmPNqkmHcmv3i46Wm0ZL-gPmkRfGvLn4,317
|
224
224
|
rbx/testing_utils.py,sha256=vNNdaytowJfuopszVHeFzVtHWlPfipPW4zpqCOvdZKU,2908
|
225
225
|
rbx/utils.py,sha256=AUIknhhED-ZIp6w-VcfPkaG1cYjQkovlX5WCvbVLNHg,9930
|
226
|
-
rbx_cp-0.17.
|
227
|
-
rbx_cp-0.17.
|
228
|
-
rbx_cp-0.17.
|
229
|
-
rbx_cp-0.17.
|
230
|
-
rbx_cp-0.17.
|
226
|
+
rbx_cp-0.17.2.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
227
|
+
rbx_cp-0.17.2.dist-info/METADATA,sha256=kiF1a_uLNwIOV3TxkY1QfY1obgYA4tMKXj-oFAaVP40,4799
|
228
|
+
rbx_cp-0.17.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
229
|
+
rbx_cp-0.17.2.dist-info/entry_points.txt,sha256=Gw2_BZ5Jon61biaH_ETbAQGXy8fR5On9gw2U4A1erpo,40
|
230
|
+
rbx_cp-0.17.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|