-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
211 lines (211 loc) · 6.13 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
{
"name": "autoflake-extension",
"displayName": "autoflake",
"description": "Remove unused imports using autoflake",
"version": "0.0.7",
"license": "MIT",
"icon": "images/Icon.png",
"extensionDependencies": [
"ms-python.python"
],
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Formatters"
],
"keywords": [
"autoflake",
"python",
"formatters",
"isort",
"pyflakes"
],
"author": {
"name": "34j"
},
"publisher": "mikoz",
"activationEvents": [
"onCommand:autoflake-extension.run",
"onCommand:autoflake-extension.runForWorkspaceFolders",
"onLanguage:python"
],
"bugs": {
"url": "https://github.com/34j/vscode-autoflake-extension/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/34j/vscode-autoflake-extension.git"
},
"main": "./out/extension.js",
"contributes": {
"configuration": [
{
"title": "autoflake Extension",
"properties": {
"autoflake-extension.expand-star-imports": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "expand wildcard star imports with undefined names; this only triggers if there is only one star import in the file; this is skipped if there are any uses of `__all__` or `del` in the file"
},
"autoflake-extension.remove-all-unused-imports": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "remove all unused imports (not just those from the standard library)"
},
"autoflake-extension.ignore-init-module-imports": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "exclude __init__.py when removing unused imports"
},
"autoflake-extension.remove-duplicate-keys": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "remove all duplicate keys in objects"
},
"autoflake-extension.remove-unused-variables": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "remove unused variables"
},
"autoflake-extension.remove-rhs-for-unused-variables": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "remove RHS of statements when removing unused variables (unsafe)"
},
"autoflake-extension.check": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "return error code if changes are needed"
},
"autoflake-extension.jobs": {
"type": "integer",
"default": 0,
"scope": "resource",
"description": "number of parallel jobs; match CPU count if value is 0 (default: 0)"
},
"autoflake-extension.exclude": {
"type": "array",
"default": [
"venv",
"env",
".venv",
".env",
"ENV",
"env.bak",
"venv.bak"
],
"items": {
"type": "string"
},
"scope": "resource",
"description": "exclude file/directory names that match these globs"
},
"autoflake-extension.imports": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"scope": "resource",
"description": "by default, only unused standard library imports are removed; specify a list of additional modules/packages"
},
"autoflake-extension.extension.useIntegratedTerminal": {
"type": "boolean",
"default": false,
"scope": "window",
"description": "Whether to use integrated terminal instead of hidden terminal. (Not recommended)"
}
}
}
],
"commands": [
{
"command": "autoflake-extension.run",
"title": "Run autoflake",
"enablement": "resourceLangId == python || explorerResourceIsFolder",
"category": "Python"
},
{
"command": "autoflake-extension.runForWorkspaceFolders",
"title": "Run autoflake For The Workspace Folders",
"category": "Python"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceLangId == python || explorerResourceIsFolder",
"command": "autoflake-extension.run",
"group": "2_workspace@-1"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"clean": "rm -rf ./lib/",
"cm": "cz",
"prepare": "husky install",
"semantic-release": "semantic-release",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/vscode": "^1.70.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@vscode/test-electron": "^2.1.5",
"eslint": "^8.20.0",
"glob": "^8.0.3",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"mocha": "^10.0.0",
"semantic-release": "^19.0.2",
"typescript": "^4.8.4",
"semantic-release-vsce": "^5.2.0"
},
"dependencies": {
"vscode-python-extension-core": "^1.0.12"
},
"release": {
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"semantic-release-vsce",
{
"packageVsix": true
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "*.vsix",
"label": "Extension File"
}
]
}
]
]
}
}