Skip to content

Commit

Permalink
fix(ruff): use --output-format
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Oct 17, 2023
1 parent 3772854 commit 7a9988a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/linters/ruff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class Ruff extends BaseLinter {

protected async runLinter(document: TextDocument, token: CancellationToken): Promise<ILintMessage[]> {
const fsPath = Uri.parse(document.uri).fsPath;
const args = ['--format', 'json', '--exit-zero', '--stdin-filename', fsPath, '-'];
const args = ['check', '--output-format', 'json', '--exit-zero', '--stdin-filename', fsPath, '-'];
return this.run(args, document, token);
}
}

0 comments on commit 7a9988a

Please sign in to comment.