forked from Whinarn/vscode-python-auto-venv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
189 lines (189 loc) · 7.65 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
{
"name": "python-auto-venv",
"displayName": "Python Auto Venv",
"description": "Automatically selects the virtual environment found in the directory of your current file.",
"version": "1.2.2",
"publisher": "whinarn",
"repository": {
"type": "git",
"url": "https://github.com/Whinarn/vscode-python-auto-venv.git"
},
"license": "MIT",
"icon": "images/logo.png",
"author": {
"name": "Mattias Edlund",
"url": "https://github.com/Whinarn"
},
"badges": [
{
"url": "https://api.codacy.com/project/badge/Grade/17cbbbf142bd420f83e282530c33fdc2",
"href": "https://www.codacy.com/manual/Whinarn/vscode-python-auto-venv?utm_source=marketplace.visualstudio.com&utm_medium=referral&utm_content=Whinarn/vscode-python-auto-venv&utm_campaign=Badge_Grade",
"description": "Codacy: code quality"
}
],
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Other"
],
"keywords": [
"python",
"venv",
"virtual",
"environment"
],
"activationEvents": [
"onCommand:pythonautovenv.installVenv",
"onCommand:pythonautovenv.uninstallVenv",
"onLanguage:python"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "pythonautovenv.installVenv",
"title": "Install Virtual Environment",
"category": "Python Auto Venv",
"enablement": "editorLangId == python"
},
{
"command": "pythonautovenv.uninstallVenv",
"title": "Uninstall Virtual Environment",
"category": "Python Auto Venv",
"enablement": "editorLangId == python"
}
],
"configuration": {
"title": "Python Auto Venv",
"properties": {
"pythonautovenv.enable": {
"type": "boolean",
"default": true,
"description": "Enables or disables this extension."
},
"pythonautovenv.pythonPath": {
"type": "string",
"default": "python",
"description": "The path to the python executable."
},
"pythonautovenv.pipPath": {
"type": "string",
"default": "pip",
"description": "The path to the pip executable."
},
"pythonautovenv.pipenvPath": {
"type": "string",
"default": "pipenv",
"description": "The path to the pipenv executable."
},
"pythonautovenv.poetryPath": {
"type": "string",
"default": "poetry",
"description": "The path to the poetry executable."
},
"pythonautovenv.preferPipenv": {
"type": "boolean",
"default": false,
"description": "If pipenv should is preferred in detecting and installing virtual environments.",
"deprecationMessage": "This is no longer supported. Automatic detection based on files is now used instead."
},
"pythonautovenv.venvDirectoryNames": {
"type": "array",
"items": {
"type": "string"
},
"default": [
".venv",
"venv"
],
"description": "The names of possible virtual environment directories."
},
"pythonautovenv.autoInstallVenv": {
"type": "boolean",
"default": false,
"description": "If virtual environments should be installed automatically once a requirements/dependency file is detected."
},
"pythonautovenv.installVenvFiles": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"poetry.lock",
"pyproject.toml",
"Pipfile.lock",
"Pipfile",
"requirements-dev.txt",
"requirements.txt"
],
"description": "The files that should trigger a virtual environment being installed once detected. The order decides the priority."
},
"pythonautovenv.installVenvCommand": {
"type": "string",
"default": "",
"description": "The command to use to install virtual environments. An empty string will use the default command, which you can read more about in the readme."
},
"pythonautovenv.installVenvCommandForFile": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "The command to use to install virtual environments per file detected. This allows you to use a different command to install a specific file configured in 'pythonautovenv.installVenvFiles' once detected."
},
"pythonautovenv.uninstallVenvCommand": {
"type": "string",
"default": "",
"description": "The command to use to uninstall virtual environments. An empty string will use the default command, which you can read more about in the readme."
},
"pythonautovenv.uninstallVenvCommandForFile": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"description": "The command to use to uninstall virtual environments per file detected. This allows you to use a different command to uninstall a specific file configured in 'pythonautovenv.installVenvFiles' once detected."
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production --devtool hidden-source-map",
"webpack": "webpack --mode production",
"webpack-dev": "webpack --mode development --watch",
"package": "vsce package --yarn",
"publish-extension": "vsce publish --yarn",
"compile": "tsc -p ./",
"lint": "eslint src --ext .ts",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"extensionDependencies": [
"ms-python.python"
],
"devDependencies": {
"@types/chai": "^4.2.15",
"@types/chai-as-promised": "^7.1.3",
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.168",
"@types/mocha": "^8.2.1",
"@types/node": "^12.11.7",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"eslint": "^7.22.0",
"glob": "^7.1.6",
"lodash": "^4.17.21",
"mocha": "^8.3.2",
"ts-loader": "^8.0.18",
"typescript": "^4.2.3",
"vsce": "^1.88.0",
"vscode-test": "^1.5.1",
"webpack": "^5.26.3",
"webpack-cli": "^4.5.0"
}
}