Skip to content

Commit 214220f

Browse files
committed
using "Python -m" to launch linters #716, #923, #1059
1 parent 3913407 commit 214220f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client/linters/pylint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export class Linter extends baseLinter.BaseLinter {
2121
let pylintPath = this.pythonSettings.linting.pylintPath;
2222
let pylintArgs = Array.isArray(this.pythonSettings.linting.pylintArgs) ? this.pythonSettings.linting.pylintArgs : [];
2323

24-
if (pep8Args.length === 0 && ProductExecutableAndArgs.has(Product.pep8)){
25-
pep8Path = ProductExecutableAndArgs.get(Product.pep8).executable;
26-
pep8Args = ProductExecutableAndArgs.get(Product.pep8).args;
24+
if (pylintArgs.length === 0 && ProductExecutableAndArgs.has(Product.pylint)){
25+
pylintPath = ProductExecutableAndArgs.get(Product.pylint).executable;
26+
pylintArgs = ProductExecutableAndArgs.get(Product.pylint).args;
2727
}
2828

2929
return new Promise<baseLinter.ILintMessage[]>((resolve, reject) => {

0 commit comments

Comments
 (0)