Skip to content

Commit

Permalink
Add prefix to mypy check (#367)
Browse files Browse the repository at this point in the history
* Add prefix to mypy check

* Change check format
  • Loading branch information
devyntk authored Jan 6, 2022
1 parent 698e2ee commit 5c9cb35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/linters/mypy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class Mypy {
}

// Verify that Mypy is installed
if (!(await commandExists("mypy"))) {
try {
run(`${prefix} mypy --version`, { dir });
} catch (err) {
throw new Error(`${this.name} is not installed`);
}
}
Expand Down

0 comments on commit 5c9cb35

Please sign in to comment.