Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
julianwachholz committed Apr 8, 2021
1 parent 21bd9d4 commit 5f8a6f5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ async function installFlake8() {

async function runFlake8() {
let output = "";
let options = {
const args = ["--exit-zero"];
if (core.getInput("config")) {
args.push("--config", core.getInput("config"));
}
args.push(core.getInput("path"));
await exec.exec("flake8", args, {
listeners: {
stdout: (data) => {
output += data.toString();
},
},
};
await exec.exec("flake8", [
core.getInput("path"),
'--exit-zero'
], options);
});
return output;
}

Expand Down

0 comments on commit 5f8a6f5

Please sign in to comment.