Skip to content
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

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Sep 14, 2020

For #28
Added some code for conda interpreters (copied from core extension, into tests folder).

Manually Tested:

  • Native notebooks
  • Old notebooks
  • Interactive window

@@ -87,6 +92,7 @@
"no-control-regex": "off",
"function-paren-newline": "off",
"consistent-return": "off",
"class-methods-use-this": "off",
Copy link
Contributor Author

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": [
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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;
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants