-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
196 lines (196 loc) · 5.53 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
{
"name": "@yaegassy/coc-pysen",
"version": "0.1.7",
"pysenLsVersion": "0.1.2",
"description": "pysen-ls (pysen language server) extension for coc.nvim",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"python",
"linter",
"formatter",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-pysen"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"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": "^12.11.7",
"@types/rimraf": "^3.0.0",
"@types/tmp": "^0.2.0",
"@types/which": "2.0.0",
"@typescript-eslint/eslint-plugin": "^4.8.2",
"@typescript-eslint/parser": "^4.8.2",
"coc.nvim": "^0.0.80",
"esbuild": "^0.8.42",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.2.0",
"rimraf": "^3.0.2",
"typescript": "^4.1.2",
"which": "^2.0.2"
},
"activationEvents": [
"onLanguage:python"
],
"contributes": {
"configuration": {
"type": "object",
"title": "coc-pysen configuration",
"properties": {
"pysen.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-pysen extension."
},
"pysen.pysenLsPath": {
"type": "string",
"default": "",
"description": "(Optional) The custom path to the pysen-ls (Absolute path)."
},
"pysen.bultin.flake8Version": {
"type": "string",
"default": "",
"description": "Version of flake8 for built-in install."
},
"pysen.bultin.mypyVersion": {
"type": "string",
"default": "",
"description": "Version of mypy for built-in install."
},
"pysen.bultin.blackVersion": {
"type": "string",
"default": "",
"description": "Version of black for built-in install."
},
"pysen.bultin.isortVersion": {
"type": "string",
"default": "",
"description": "Version of isort for built-in install."
},
"pysen.client.connectionMode": {
"scope": "resource",
"type": "string",
"default": "stdio",
"markdownDescription": "Controls the communication method to pysen-ls.",
"enum": [
"stdio",
"tcp"
],
"enumDescriptions": [
"Use stdio to communicate with pysen-ls.",
"Use tcp to connect pysen-ls. You need to launch pysen-ls."
]
},
"pysen.client.pythonPath": {
"scope": "resource",
"type": "string",
"default": null,
"description": "Specifies the python path to use pysen."
},
"pysen.client.tcpHost": {
"scope": "resource",
"type": "string",
"default": "127.0.0.1",
"description": "Specifies the host name to connect pysen-ls server. This setting only works with connectionMode is 'tcp'."
},
"pysen.client.tcpPort": {
"scope": "resource",
"type": "number",
"default": "3746",
"markdownDescription": "Specifies the port to connect pysen-ls server. This setting only works with connectionMode is 'tcp'."
},
"pysen.server.enableLintOnSave": {
"scope": "resource",
"type": "boolean",
"default": true,
"markdownDescription": "Triggers the lint task on save."
},
"pysen.server.enableCodeAction": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Enable/disable code actions."
},
"pysen.server.lintTargets": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [
"lint"
],
"description": "Controls target names for pysen to invoke in the lint task."
},
"pysen.server.formatTargets": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [
"format",
"lint"
],
"description": "Controls target names for pysen to invoke in the format task."
},
"pysen.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the pysen language server."
}
}
},
"commands": [
{
"command": "pysen.installServer",
"title": "Install pysen language server (builtin)"
},
{
"command": "pysen.triggerLintDocument",
"title": "Lint Current Document"
},
{
"command": "pysen.triggerLintWorkspace",
"title": "Lint Entire Workspace"
},
{
"command": "pysen.triggerFormatDocument",
"title": "Format Current Document"
},
{
"command": "pysen.triggerFormatWorkspace",
"title": "Format Entire Workspace"
}
]
}
}