|
| 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 | +`; |
0 commit comments