-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
253 lines (253 loc) · 8.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{
"name": "@yaegassy/coc-mypy",
"version": "0.1.5",
"vscodeMypyVersion": "v2023.6.0",
"description": "microsoft/vscode-mypy’s langauge server extension for coc.nvim.",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"python",
"python3",
"linting",
"mypy",
"coc-mypy",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-mypy"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"tags-get": "curl -o resources/vscode-mypy-tags.json https://github.com/gitapi/repos/microsoft/vscode-mypy/tags",
"tags-check": "node scripts/upstream-tags-check.mjs",
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^18.17.2",
"@types/node-fetch": "^2.6.2",
"@types/rimraf": "^3.0.2",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"extract-zip": "^2.0.1",
"https-proxy-agent": "^5.0.1",
"node-fetch": "^2.6.7",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"typescript": "^5.1.6",
"which": "^3.0.0"
},
"activationEvents": [
"onLanguage:python"
],
"contributes": {
"rootPatterns": [
{
"filetype": "python",
"patterns": [
"pyproject.toml",
"mypy.ini",
".mypy.ini",
"setup.py",
"setup.cfg",
"tox.ini",
"Pipfile",
"requirements.txt"
]
}
],
"configuration": {
"type": "object",
"title": "coc-mypy configuration",
"properties": {
"mypy-type-checker.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-mypy extension."
},
"mypy-type-checker.useDmypy": {
"type": "boolean",
"default": true,
"description": "Use dmypy deamon mode as the linting command run by microsoft/vscode-mypy's language server."
},
"mypy-type-checker.builtin.pythonPath": {
"type": "string",
"default": "",
"description": "Python 3.x path (Absolute path) to be used for built-in install."
},
"mypy-type-checker.showDocumantaion.enable": {
"type": "boolean",
"default": true,
"description": "Whether to display the code action for open the Mypy rule documentation web page included in the diagnostic information."
},
"mypy-type-checker.dev.serverInterpreter": {
"type": "string",
"default": "",
"markdownDescription": "(DEV) Set the python interpreter where the server is installed."
},
"mypy-type-checker.dev.serverScript": {
"type": "string",
"default": "",
"markdownDescription": "(DEV) Set server script path."
},
"mypy-type-checker.args": {
"default": [],
"markdownDescription": "Arguments passed in. Each argument is a separate string in the array.",
"items": {
"type": "string"
},
"scope": "resource",
"type": "array"
},
"mypy-type-checker.path": {
"default": [],
"markdownDescription": "When set to a path to `mypy` binary, extension will use that for linting. NOTE: Using this option may slowdown linting.",
"scope": "resource",
"items": {
"type": "string"
},
"type": "array"
},
"mypy-type-checker.ignorePatterns": {
"default": [],
"description": "Configure glob patterns to exclude files or folders from being type checked by Mypy.",
"items": {
"type": "string"
},
"scope": "resource",
"type": "array"
},
"mypy-type-checker.importStrategy": {
"default": "fromEnvironment",
"markdownDescription": "Defines where `mypy` is imported from. This setting may be ignored if `mypy-type-checker.path` is set.",
"enum": [
"useBundled",
"fromEnvironment"
],
"markdownEnumDescriptions": [
"Always use the bundled version of `mypy`.",
"Use `mypy` from environment, fallback to bundled version only if `mypy` not available in the environment."
],
"scope": "window",
"type": "string"
},
"mypy-type-checker.interpreter": {
"default": [],
"markdownDescription": "When set to a path to python executable, extension will use that to launch the server and any subprocess.",
"scope": "resource",
"items": {
"type": "string"
},
"type": "array"
},
"mypy-type-checker.preferDaemon": {
"default": true,
"markdownDescription": "When set to true, `dmypy` is preferred over `mypy`; otherwise, `mypy` is preferred. This setting will be overridden if `mypy-type-checker.path` is set. NOTE: Setting this option to false may slowdown linting.",
"scope": "resource",
"type": "boolean"
},
"mypy-type-checker.reportingScope": {
"default": "file",
"markdownDescription": "Defines the scope of the problems reported by the extension.",
"enum": [
"file",
"workspace"
],
"markdownEnumDescriptions": [
"Problems are reported for the files open in the editor only.",
"Problems are reported for files in the workspace."
],
"scope": "resource",
"type": "string"
},
"mypy-type-checker.severity": {
"default": {
"error": "Error",
"note": "Information"
},
"additionalProperties": {
"type": "string",
"enum": [
"Error",
"Hint",
"Information",
"Warning"
]
},
"markdownDescription": "Mapping from severity of `mypy` message type to severity shown in problem window.",
"scope": "resource",
"type": "object"
},
"mypy-type-checker.showNotifications": {
"default": "off",
"markdownDescription": "Controls when notifications are shown by this extension.",
"enum": [
"off",
"onError",
"onWarning",
"always"
],
"markdownEnumDescriptions": [
"All notifications are turned off, any errors or warning are still available in the logs.",
"Notifications are shown only in the case of an error.",
"Notifications are shown for errors and warnings.",
"Notifications are show for anything that the server chooses to show."
],
"scope": "machine",
"type": "string"
},
"mypy-type-checker.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the language server."
}
}
},
"commands": [
{
"title": "Restart Server",
"command": "mypy-type-checker.restart"
},
{
"title": "Install Server",
"command": "mypy-type-checker.installServer"
},
{
"title": "Show output channel",
"command": "mypy-type-checker.showOutput"
},
{
"title": "Show the version of the server installed by the extension",
"command": "mypy-type-checker.version"
}
]
}
}