|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Testing linter mypy test CUSTOM 1`] = ` |
| 4 | +{ |
| 5 | + "issues": [ |
| 6 | + { |
| 7 | + "code": "import-untyped", |
| 8 | + "column": "1", |
| 9 | + "file": "test_data/basic.py", |
| 10 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 11 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 12 | + "level": "LEVEL_HIGH", |
| 13 | + "line": "1", |
| 14 | + "linter": "mypy", |
| 15 | + "message": "Library stubs not installed for "google.protobuf"", |
| 16 | + "targetType": "python", |
| 17 | + }, |
| 18 | + { |
| 19 | + "code": "import-untyped", |
| 20 | + "column": "1", |
| 21 | + "file": "test_data/basic.py", |
| 22 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 23 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 24 | + "level": "LEVEL_HIGH", |
| 25 | + "line": "1", |
| 26 | + "linter": "mypy", |
| 27 | + "message": "Library stubs not installed for "google.protobuf.descriptor_pb2"", |
| 28 | + "targetType": "python", |
| 29 | + }, |
| 30 | + { |
| 31 | + "code": "note", |
| 32 | + "column": "1", |
| 33 | + "file": "test_data/basic.py", |
| 34 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 35 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 36 | + "level": "LEVEL_HIGH", |
| 37 | + "line": "1", |
| 38 | + "linter": "mypy", |
| 39 | + "message": "Hint: "python3 -m pip install types-protobuf". (or run "mypy --install-types" to install all missing stub packages). See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports", |
| 40 | + "targetType": "python", |
| 41 | + }, |
| 42 | + { |
| 43 | + "code": "arg-type", |
| 44 | + "column": "10", |
| 45 | + "file": "test_data/basic.py", |
| 46 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 47 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 48 | + "level": "LEVEL_HIGH", |
| 49 | + "line": "13", |
| 50 | + "linter": "mypy", |
| 51 | + "message": "Argument 1 to "greeting" has incompatible type "int"; expected "str"", |
| 52 | + "targetType": "python", |
| 53 | + }, |
| 54 | + { |
| 55 | + "code": "arg-type", |
| 56 | + "column": "10", |
| 57 | + "file": "test_data/basic.py", |
| 58 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 59 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 60 | + "level": "LEVEL_HIGH", |
| 61 | + "line": "14", |
| 62 | + "linter": "mypy", |
| 63 | + "message": "Argument 1 to "greeting" has incompatible type "bytes"; expected "str"", |
| 64 | + "targetType": "python", |
| 65 | + }, |
| 66 | + { |
| 67 | + "code": "func-returns-value", |
| 68 | + "column": "5", |
| 69 | + "file": "test_data/basic.py", |
| 70 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 71 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 72 | + "level": "LEVEL_HIGH", |
| 73 | + "line": "15", |
| 74 | + "linter": "mypy", |
| 75 | + "message": ""printer" does not return a value (it only ever returns None)", |
| 76 | + "targetType": "python", |
| 77 | + }, |
| 78 | + { |
| 79 | + "code": "assignment", |
| 80 | + "column": "10", |
| 81 | + "file": "test_data/basic.py", |
| 82 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 83 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 84 | + "level": "LEVEL_HIGH", |
| 85 | + "line": "16", |
| 86 | + "linter": "mypy", |
| 87 | + "message": "Incompatible types in assignment (expression has type "int", variable has type "str")", |
| 88 | + "targetType": "python", |
| 89 | + }, |
| 90 | + { |
| 91 | + "code": "attr-defined", |
| 92 | + "column": "1", |
| 93 | + "file": "test_data/basic.py", |
| 94 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 95 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 96 | + "level": "LEVEL_HIGH", |
| 97 | + "line": "3", |
| 98 | + "linter": "mypy", |
| 99 | + "message": "Module "test_data" has no attribute "mypy_import2"", |
| 100 | + "targetType": "python", |
| 101 | + }, |
| 102 | + { |
| 103 | + "code": "return", |
| 104 | + "column": "1", |
| 105 | + "file": "test_data/source.py", |
| 106 | + "issueClass": "ISSUE_CLASS_EXISTING", |
| 107 | + "issueUrl": "https://mypy.readthedocs.io/en/stable/error_code_list.html", |
| 108 | + "level": "LEVEL_HIGH", |
| 109 | + "line": "8", |
| 110 | + "linter": "mypy", |
| 111 | + "message": "Missing return statement", |
| 112 | + "targetType": "python", |
| 113 | + }, |
| 114 | + ], |
| 115 | + "lintActions": [ |
| 116 | + { |
| 117 | + "command": "lint", |
| 118 | + "fileGroupName": "python", |
| 119 | + "linter": "mypy", |
| 120 | + "paths": [ |
| 121 | + "test_data/__init__.py", |
| 122 | + ], |
| 123 | + "verb": "TRUNK_VERB_CHECK", |
| 124 | + }, |
| 125 | + { |
| 126 | + "command": "lint", |
| 127 | + "fileGroupName": "python", |
| 128 | + "linter": "mypy", |
| 129 | + "paths": [ |
| 130 | + "test_data/basic.py", |
| 131 | + ], |
| 132 | + "verb": "TRUNK_VERB_CHECK", |
| 133 | + }, |
| 134 | + { |
| 135 | + "command": "lint", |
| 136 | + "fileGroupName": "python", |
| 137 | + "linter": "mypy", |
| 138 | + "paths": [ |
| 139 | + "test_data/source.py", |
| 140 | + ], |
| 141 | + "verb": "TRUNK_VERB_CHECK", |
| 142 | + }, |
| 143 | + { |
| 144 | + "command": "lint", |
| 145 | + "fileGroupName": "python", |
| 146 | + "linter": "mypy", |
| 147 | + "paths": [ |
| 148 | + "test_data/__init__.py", |
| 149 | + ], |
| 150 | + "upstream": true, |
| 151 | + "verb": "TRUNK_VERB_CHECK", |
| 152 | + }, |
| 153 | + { |
| 154 | + "command": "lint", |
| 155 | + "fileGroupName": "python", |
| 156 | + "linter": "mypy", |
| 157 | + "paths": [ |
| 158 | + "test_data/basic.py", |
| 159 | + ], |
| 160 | + "upstream": true, |
| 161 | + "verb": "TRUNK_VERB_CHECK", |
| 162 | + }, |
| 163 | + { |
| 164 | + "command": "lint", |
| 165 | + "fileGroupName": "python", |
| 166 | + "linter": "mypy", |
| 167 | + "paths": [ |
| 168 | + "test_data/source.py", |
| 169 | + ], |
| 170 | + "upstream": true, |
| 171 | + "verb": "TRUNK_VERB_CHECK", |
| 172 | + }, |
| 173 | + ], |
| 174 | + "taskFailures": [], |
| 175 | + "unformattedFiles": [], |
| 176 | +} |
| 177 | +`; |
0 commit comments