Skip to content

Commit

Permalink
normalize results
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Jun 29, 2024
1 parent f765f48 commit dc9f2a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ exports[`Testing linter ruff-nbqa test basic_nb 1`] = `
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"linter": "ruff-nbqa",
"message": "/tmp/plugins_/test_data/basic_nb.in.ipynb:cell_1:1:8: F401 [*] \`os\` imported but unused
Found 1 error.
[*] 1 potentially fixable with the --fix option.",
"message": "/tmp/plugins_/test_data/basic_nb.in.ipynb:cell_1:1:8: F401 [*] \`os\` imported but unused",
"targetType": "jupyter",
},
],
Expand Down
4 changes: 1 addition & 3 deletions linters/ruff/test_data/ruff_nbqa_v0.1.0_basic_nb.check.shot
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ exports[`Testing linter ruff-nbqa test basic_nb 1`] = `
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"linter": "ruff-nbqa",
"message": "/tmp/plugins_/test_data/basic_nb.in.ipynb:cell_1:1:8: F401 [*] \`os\` imported but unused
Found 1 error.
[*] 1 fixable with the \`--fix\` option.",
"message": "/tmp/plugins_/test_data/basic_nb.in.ipynb:cell_1:1:8: F401 [*] \`os\` imported but unused",
"targetType": "jupyter",
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`Testing linter ruff-nbqa test basic_nb 1`] = `
"linter": "ruff-nbqa",
"message": "/tmp/plugins_/test_data/basic_nb.in.ipynb:cell_1:1:8: F401 [*] \`os\` imported but unused
|
1 | # %%NBQA-CELL-SEP22268f
1 | # %%NBQA-CELL-SEP
2 | import os
| ^^ F401
3 |
Expand Down
1 change: 1 addition & 0 deletions tests/utils/landing_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const normalizeMessage = (message?: string) =>
.replaceAll("\\", "/")
.replace(/\/plugins_.{6}/gm, "/plugins_")
.replace(".dup.", ".")
.replace(/NBQA-CELL-SEP.{6}/gm, "NBQA-CELL-SEP")
.trim();

// trunk-ignore(eslint/@typescript-eslint/no-non-null-assertion)
Expand Down

0 comments on commit dc9f2a6

Please sign in to comment.