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

Add conda run without output (no bypass) #18319

Merged

Conversation

paulacamargo25
Copy link

@paulacamargo25 paulacamargo25 commented Jan 19, 2022

Add conda run support

Closed #17973

@paulacamargo25 paulacamargo25 marked this pull request as ready for review January 20, 2022 18:10
Copy link
Member

@karthiknadig karthiknadig left a 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],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['--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],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['--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];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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];

@karthiknadig
Copy link
Member

You can merge this without the space fix. We will discuss this and address it later.

@paulacamargo25 paulacamargo25 changed the title Add conda run without bypass Add conda run without output (no bypass) Jan 21, 2022
@paulacamargo25 paulacamargo25 merged commit c63d38d into microsoft:main Jan 21, 2022
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* 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>
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.

Support Conda run
2 participants