Skip to content

Commit db4317c

Browse files
Merge branch 'main' into scopeTestFormat
2 parents b93a557 + 8a81abe commit db4317c

File tree

18 files changed

+371
-35
lines changed

18 files changed

+371
-35
lines changed

.github/workflows/deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
24+
- name: Upgrade Corepack
25+
run: npm install --global [email protected]
26+
2327
- name: Enable Corepack
2428
run: corepack enable
2529

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
python-version: 3.x
2929

30+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
31+
- name: Upgrade Corepack
32+
run: npm install --global [email protected]
33+
3034
- name: Enable Corepack
3135
run: corepack enable
3236

.github/workflows/test-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
20+
- name: Upgrade Corepack
21+
run: npm install --global [email protected]
22+
1923
- name: Enable Corepack
2024
run: corepack enable
2125

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
3939

40+
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
41+
- name: Upgrade Corepack
42+
run: npm install --global --force [email protected]
43+
4044
- name: Enable Corepack
4145
run: corepack enable
4246

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
if True:
2+
a
3+
elif False:
4+
b
5+
else:
6+
c
7+
---
8+
9+
[#1 Content] =
10+
[#1 Removal] = 1:4-1:5
11+
>-<
12+
1| a
13+
14+
[#1 Domain] = 0:0-1:5
15+
>--------
16+
0| if True:
17+
1| a
18+
-----<
19+
20+
[#1 Insertion delimiter] = " "
21+
22+
23+
[#2 Content] =
24+
[#2 Removal] = 3:4-3:5
25+
>-<
26+
3| b
27+
28+
[#2 Domain] = 2:0-3:5
29+
>-----------
30+
2| elif False:
31+
3| b
32+
-----<
33+
34+
[#2 Insertion delimiter] = " "
35+
36+
37+
[#3 Content] =
38+
[#3 Removal] = 5:4-5:5
39+
>-<
40+
5| c
41+
42+
[#3 Domain] = 4:0-5:5
43+
>-----
44+
4| else:
45+
5| c
46+
-----<
47+
48+
[#3 Insertion delimiter] = " "
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
for v in values:
2+
pass
3+
---
4+
5+
[Content] =
6+
[Removal] = 1:4-1:8
7+
>----<
8+
1| pass
9+
10+
[Domain] = 0:0-1:8
11+
>----------------
12+
0| for v in values:
13+
1| pass
14+
--------<
15+
16+
[Insertion delimiter] = " "
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
while True:
2+
pass
3+
---
4+
5+
[Content] =
6+
[Removal] = 1:4-1:8
7+
>----<
8+
1| pass
9+
10+
[Domain] = 0:0-1:8
11+
>-----------
12+
0| while True:
13+
1| pass
14+
--------<
15+
16+
[Insertion delimiter] = " "
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
match value:
2+
case 1:
3+
a
4+
case _:
5+
b
6+
---
7+
8+
[#1 Content] = 1:4-4:9
9+
>-------
10+
1| case 1:
11+
2| a
12+
3| case _:
13+
4| b
14+
---------<
15+
16+
[#1 Removal] = 0:12-4:9
17+
>
18+
0| match value:
19+
1| case 1:
20+
2| a
21+
3| case _:
22+
4| b
23+
---------<
24+
25+
[#1 Domain] = 0:0-4:9
26+
>------------
27+
0| match value:
28+
1| case 1:
29+
2| a
30+
3| case _:
31+
4| b
32+
---------<
33+
34+
[#1 Insertion delimiter] = " "
35+
36+
37+
[#2 Content] =
38+
[#2 Removal] = 2:8-2:9
39+
>-<
40+
2| a
41+
42+
[#2 Domain] = 1:4-2:9
43+
>-------
44+
1| case 1:
45+
2| a
46+
---------<
47+
48+
[#2 Insertion delimiter] = " "
49+
50+
51+
[#3 Content] =
52+
[#3 Removal] = 4:8-4:9
53+
>-<
54+
4| b
55+
56+
[#3 Domain] = 3:4-4:9
57+
>-------
58+
3| case _:
59+
4| b
60+
---------<
61+
62+
[#3 Insertion delimiter] = " "
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
1 if True else 0
2+
---
3+
4+
[#1 Content] =
5+
[#1 Removal] =
6+
[#1 Domain] = 0:0-0:1
7+
>-<
8+
0| 1 if True else 0
9+
10+
[#1 Insertion delimiter] = " "
11+
12+
13+
[#2 Content] =
14+
[#2 Removal] = 0:5-0:9
15+
>----<
16+
0| 1 if True else 0
17+
18+
[#2 Domain] = 0:2-0:9
19+
>-------<
20+
0| 1 if True else 0
21+
22+
[#2 Insertion delimiter] = " "
23+
24+
25+
[#3 Content] =
26+
[#3 Removal] = 0:15-0:16
27+
>-<
28+
0| 1 if True else 0
29+
30+
[#3 Domain] = 0:10-0:16
31+
>------<
32+
0| 1 if True else 0
33+
34+
[#3 Insertion delimiter] = " "

0 commit comments

Comments
 (0)