-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add conda run without output (no bypass) #18319
Add conda run without output (no bypass) #18319
Conversation
Co-authored-by: Kartik Raj <karraj@microsoft.com>
…o25/vscode-python into Add-conda-run-without-bypass
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.
Minor suggestions. There was a space between --format=
and the format value.
@@ -14,7 +14,7 @@ export class Flake8 extends BaseLinter { | |||
|
|||
protected async runLinter(document: TextDocument, cancellation: CancellationToken): Promise<ILintMessage[]> { | |||
const messages = await this.run( | |||
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], | |||
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], |
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.
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], | |
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], |
@@ -14,7 +14,7 @@ export class Pycodestyle extends BaseLinter { | |||
|
|||
protected async runLinter(document: TextDocument, cancellation: CancellationToken): Promise<ILintMessage[]> { | |||
const messages = await this.run( | |||
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], | |||
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], |
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.
['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], | |
['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', document.uri.fsPath], |
@@ -142,12 +142,12 @@ suite('Linting - Arguments', () => { | |||
} | |||
test('Flake8', async () => { | |||
const linter = new Flake8(serviceContainer); | |||
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; | |||
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; |
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.
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; | |
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; |
await testLinter(linter, expectedArgs); | ||
}); | ||
test('Pycodestyle', async () => { | ||
const linter = new Pycodestyle(serviceContainer); | ||
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; | ||
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; |
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.
const expectedArgs = ['--format= %(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; | |
const expectedArgs = ['--format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s', fileUri.fsPath]; |
You can merge this without the space fix. We will discuss this and address it later. |
* Add conda run command * Fix code run * Fix linting * Fix tests * Add news * Fix tests in linter * Fix strings * Fix linters * Fix conda run unit test * Fix funtional tests * Fix single workspace tests * update minimum conda versionvalue * Change sorting timeput * Add timeout time in sorting test * Fix test wothout config * Add more time to timeout in sorting tests * Add conda run command * Fix code run * Fix linting * Fix tests * Add news * Fix tests in linter * Fix strings * Fix linters * Fix conda run unit test * Fix funtional tests * Fix single workspace tests * update minimum conda versionvalue * Change sorting timeput * Add timeout time in sorting test * Add more time to timeout in sorting tests * Update news/1 Enhancements/7696.md Co-authored-by: Kartik Raj <karraj@microsoft.com> * Rix pylint test * Fix lint test * Remove unnecessary interpreter check * Fix timeout test errors * Fix unit test pip installer * Fix IModuleInstaller test * Remove bypass Conda * Remove bypass * Add timeout time * Add conda run command * Fix code run * Fix linting * Fix tests * Add news * Fix tests in linter * Fix strings * Fix linters * Fix conda run unit test * Fix funtional tests * Fix single workspace tests * update minimum conda versionvalue * Change sorting timeput * Add timeout time in sorting test * Add more time to timeout in sorting tests * Add conda run command * Fix code run * Fix test wothout config * Add more time to timeout in sorting tests * Update news/1 Enhancements/7696.md Co-authored-by: Kartik Raj <karraj@microsoft.com> * Rix pylint test * Fix lint test * Remove unnecessary interpreter check * Fix timeout test errors * Fix unit test pip installer * Fix IModuleInstaller test * Remove bypass Conda * Remove bypass * Add timeout time * Fix compilation error * Fix compilation error * Fin pylint linter * Fix installer test Co-authored-by: Kartik Raj <karraj@microsoft.com>
Add conda run support
Closed #17973