-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove more unnecessary interpreter types #31
Remove more unnecessary interpreter types #31
Conversation
@@ -87,6 +92,7 @@ | |||
"no-control-regex": "off", | |||
"function-paren-newline": "off", | |||
"consistent-return": "off", | |||
"class-methods-use-this": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For existing code.
@@ -33,7 +33,12 @@ | |||
"@typescript-eslint/no-empty-interface": "off", | |||
"@typescript-eslint/no-non-null-assertion": "off", | |||
"no-unused-vars": "off", | |||
"@typescript-eslint/no-unused-vars": "error", | |||
"@typescript-eslint/no-unused-vars": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For existing code
/** | ||
* The supported Python environment types. | ||
*/ | ||
export enum EnvironmentType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used in DS code.
@@ -64,7 +45,4 @@ export type InterpreterInformation = { | |||
// and doesn't really belong here. | |||
export type PythonEnvironment = InterpreterInformation & { | |||
displayName?: string; | |||
envType: EnvironmentType; | |||
envName?: string; | |||
envPath?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of these were used in DS code, only in tests.
// Eventually we will want to also support the release serial | ||
// (e.g. beta1, candidate3) and maybe even release abbreviations | ||
// (e.g. 3.9.2b1, 3.8.10rc3). | ||
export function parsePythonVersion(raw: string): PythonVersion | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only used in tests, hence moved to tests folder.
For #28
Added some code for conda interpreters (copied from core extension, into tests folder).
Manually Tested: