Skip to content

Commit f2a6d85

Browse files
committed
fixed #930 & #998
1 parent ecfe319 commit f2a6d85

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/client/common/installer.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export enum Product {
2424
const ProductInstallScripts = new Map<Product, string[]>();
2525
ProductInstallScripts.set(Product.autopep8, ['-m', 'pip', 'install', 'autopep8']);
2626
ProductInstallScripts.set(Product.flake8, ['-m', 'pip', 'install', 'flake8']);
27-
ProductInstallScripts.set(Product.mypy, ['-m', 'pip', 'install', 'mypy-lang']);
27+
ProductInstallScripts.set(Product.mypy, ['-m', 'pip', 'install', 'mypy']);
2828
ProductInstallScripts.set(Product.nosetest, ['-m', 'pip', 'install', 'nose']);
2929
ProductInstallScripts.set(Product.pep8, ['-m', 'pip', 'install', 'pep8']);
3030
ProductInstallScripts.set(Product.pylama, ['-m', 'pip', 'install', 'pylama']);
@@ -33,6 +33,16 @@ ProductInstallScripts.set(Product.pydocstyle, ['-m', 'pip', 'install', 'pydocsty
3333
ProductInstallScripts.set(Product.pylint, ['-m', 'pip', 'install', 'pylint']);
3434
ProductInstallScripts.set(Product.pytest, ['-m', 'pip', 'install', '-U', 'pytest']);
3535
ProductInstallScripts.set(Product.yapf, ['-m', 'pip', 'install', 'yapf']);
36+
37+
const ProductExecutableAndArgs = new Map<Product, {executable: string, args: string[]}>();
38+
ProductExecutableAndArgs.set(Product.mypy, {executable: 'python', args:['-m', 'mypy']});
39+
ProductExecutableAndArgs.set(Product.nosetest, {executable: 'python', args:['-m', 'nose']});
40+
ProductExecutableAndArgs.set(Product.pep8, {executable: 'python', args:['-m', 'pep8']});
41+
ProductExecutableAndArgs.set(Product.pylama, {executable: 'python', args:['-m', 'pylama']});
42+
ProductExecutableAndArgs.set(Product.prospector, {executable: 'python', args:['-m', 'prospector']});
43+
ProductExecutableAndArgs.set(Product.pylint, {executable: 'python', args:['-m', 'pylint']});
44+
ProductExecutableAndArgs.set(Product.pytest, {executable: 'python', args:['-m', 'pytest']});
45+
3646
switch (os.platform()) {
3747
case 'win32': {
3848
// Nothing

0 commit comments

Comments
 (0)