Skip to content

Commit 900ce7d

Browse files
TylerJang27github-actions[bot]
authored andcommitted
Auto add snapshots
1 parent 1052a5b commit 900ce7d

File tree

7 files changed

+517
-0
lines changed

7 files changed

+517
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter markdownlint-cli2 test basic 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "error",
9+
"column": "1",
10+
"file": "test_data/basic.in.md",
11+
"issueClass": "ISSUE_CLASS_EXISTING",
12+
"issueUrl": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#error",
13+
"level": "LEVEL_HIGH",
14+
"line": "3",
15+
"linter": "markdownlint-cli2",
16+
"message": "MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "This file fails some rules"]",
17+
"targetType": "markdown",
18+
},
19+
],
20+
"lintActions": [
21+
{
22+
"command": "lint",
23+
"fileGroupName": "markdown",
24+
"linter": "markdownlint-cli2",
25+
"paths": [
26+
"test_data/basic.in.md",
27+
],
28+
"verb": "TRUNK_VERB_CHECK",
29+
},
30+
{
31+
"command": "lint",
32+
"fileGroupName": "markdown",
33+
"linter": "markdownlint-cli2",
34+
"paths": [
35+
"test_data/basic.in.md",
36+
],
37+
"upstream": true,
38+
"verb": "TRUNK_VERB_CHECK",
39+
},
40+
],
41+
"taskFailures": [],
42+
"unformattedFiles": [],
43+
}
44+
`;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter ruff-nbqa test basic_nb 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "error",
9+
"file": "test_data/basic_nb.in.ipynb",
10+
"issueClass": "ISSUE_CLASS_EXISTING",
11+
"level": "LEVEL_HIGH",
12+
"linter": "ruff-nbqa",
13+
"message": "F401 [*] \`os\` imported but unused
14+
--> /tmp/plugins_/test_data/basic_nb.in.ipynb:2:8
15+
|
16+
1 | # %%NBQA-CELL-SEP
17+
2 | import os
18+
| ^^
19+
3 |
20+
4 | print("Hello World!")
21+
|
22+
help: Remove unused import: \`os\`",
23+
"targetType": "jupyter",
24+
},
25+
],
26+
"lintActions": [
27+
{
28+
"command": "lint",
29+
"fileGroupName": "jupyter",
30+
"linter": "ruff-nbqa",
31+
"paths": [
32+
"test_data/basic_nb.in.ipynb",
33+
],
34+
"verb": "TRUNK_VERB_CHECK",
35+
},
36+
{
37+
"command": "lint",
38+
"fileGroupName": "jupyter",
39+
"linter": "ruff-nbqa",
40+
"paths": [
41+
"test_data/basic_nb.in.ipynb",
42+
],
43+
"upstream": true,
44+
"verb": "TRUNK_VERB_CHECK",
45+
},
46+
],
47+
"taskFailures": [],
48+
"unformattedFiles": [],
49+
}
50+
`;
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter ruff test basic 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "E402",
9+
"column": "1",
10+
"file": "test_data/basic.in.py",
11+
"issueClass": "ISSUE_CLASS_EXISTING",
12+
"issueUrl": "https://docs.astral.sh/ruff/rules/#E402",
13+
"level": "LEVEL_HIGH",
14+
"line": "7",
15+
"linter": "ruff",
16+
"message": "Module level import not at top of file",
17+
"ranges": [
18+
{
19+
"filePath": "test_data/basic.in.py",
20+
"length": "10",
21+
"offset": "83",
22+
},
23+
],
24+
"targetType": "python",
25+
},
26+
{
27+
"autofixOptions": [
28+
{
29+
"message": "Remove unused import: \`sys\`",
30+
"replacements": [
31+
{
32+
"filePath": "test_data/basic.in.py",
33+
"length": "11",
34+
"offset": "83",
35+
},
36+
],
37+
},
38+
],
39+
"code": "F401",
40+
"column": "8",
41+
"file": "test_data/basic.in.py",
42+
"issueClass": "ISSUE_CLASS_EXISTING",
43+
"issueUrl": "https://docs.astral.sh/ruff/rules/#F401",
44+
"level": "LEVEL_HIGH",
45+
"line": "7",
46+
"linter": "ruff",
47+
"message": "\`sys\` imported but unused",
48+
"ranges": [
49+
{
50+
"filePath": "test_data/basic.in.py",
51+
"length": "3",
52+
"offset": "90",
53+
},
54+
],
55+
"targetType": "python",
56+
},
57+
{
58+
"code": "E402",
59+
"column": "1",
60+
"file": "test_data/basic.in.py",
61+
"issueClass": "ISSUE_CLASS_EXISTING",
62+
"issueUrl": "https://docs.astral.sh/ruff/rules/#E402",
63+
"level": "LEVEL_HIGH",
64+
"line": "9",
65+
"linter": "ruff",
66+
"message": "Module level import not at top of file",
67+
"ranges": [
68+
{
69+
"filePath": "test_data/basic.in.py",
70+
"length": "11",
71+
"offset": "120",
72+
},
73+
],
74+
"targetType": "python",
75+
},
76+
],
77+
"lintActions": [
78+
{
79+
"command": "lint",
80+
"fileGroupName": "python",
81+
"linter": "ruff",
82+
"paths": [
83+
"test_data/basic.in.py",
84+
],
85+
"verb": "TRUNK_VERB_CHECK",
86+
},
87+
{
88+
"command": "lint",
89+
"fileGroupName": "python",
90+
"linter": "ruff",
91+
"paths": [
92+
"test_data/basic.in.py",
93+
],
94+
"upstream": true,
95+
"verb": "TRUNK_VERB_CHECK",
96+
},
97+
],
98+
"taskFailures": [],
99+
"unformattedFiles": [],
100+
}
101+
`;
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter ruff test basic_nb 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"autofixOptions": [
9+
{
10+
"message": "Remove unused import: \`os\`",
11+
"replacements": [
12+
{
13+
"filePath": "test_data/basic_nb.in.ipynb",
14+
"length": "2",
15+
},
16+
],
17+
},
18+
],
19+
"code": "F401",
20+
"column": "1",
21+
"file": "test_data/basic_nb.in.ipynb",
22+
"issueClass": "ISSUE_CLASS_EXISTING",
23+
"issueUrl": "https://docs.astral.sh/ruff/rules/#F401",
24+
"level": "LEVEL_HIGH",
25+
"line": "1",
26+
"linter": "ruff",
27+
"message": "\`os\` imported but unused",
28+
"targetType": "jupyter",
29+
},
30+
],
31+
"lintActions": [
32+
{
33+
"command": "lint",
34+
"fileGroupName": "jupyter",
35+
"linter": "ruff",
36+
"paths": [
37+
"test_data/basic_nb.in.ipynb",
38+
],
39+
"verb": "TRUNK_VERB_CHECK",
40+
},
41+
{
42+
"command": "lint",
43+
"fileGroupName": "jupyter",
44+
"linter": "ruff",
45+
"paths": [
46+
"test_data/basic_nb.in.ipynb",
47+
],
48+
"upstream": true,
49+
"verb": "TRUNK_VERB_CHECK",
50+
},
51+
],
52+
"taskFailures": [],
53+
"unformattedFiles": [],
54+
}
55+
`;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing formatter ruff test format 1`] = `
5+
"# whitespace below vvv
6+
7+
# A malindented comment
8+
if __name__ == "__main__":
9+
a = 4 + 1
10+
b = 2 * 7
11+
c = [1, 2, 3]
12+
print(a / b)
13+
"
14+
`;

0 commit comments

Comments
 (0)