Skip to content

Commit

Permalink
Fix skip-unannotated
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Oct 23, 2023
1 parent 6005fd3 commit f0b639c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7058,9 +7058,9 @@ async function getArgs() {
if (pythonVersion) {
args.push("--pythonversion", pythonVersion);
}
const skipUnannotated = core.getInput("skip-unannotated");
const skipUnannotated = getBooleanInput("skip-unannotated", false);
if (skipUnannotated) {
args.push("--skipunannotated", skipUnannotated);
args.push("--skipunannotated");
}
const stats = getBooleanInput("stats", false);
if (stats) {
Expand Down
1 change: 0 additions & 1 deletion src/__snapshots__/helpers.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ exports[`getArgs > valid version > skip-unannotated > result 1`] = `
"args": [
"<TEMP_DIR>/rootDir/cached/pyright/package/index.js",
"--skipunannotated",
"TRUE",
],
"noComments": false,
"pyrightVersion": "1.1.240",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export async function getArgs() {
args.push("--pythonversion", pythonVersion);
}

const skipUnannotated = core.getInput("skip-unannotated");
const skipUnannotated = getBooleanInput("skip-unannotated", false);
if (skipUnannotated) {
args.push("--skipunannotated", skipUnannotated);
args.push("--skipunannotated");
}

const stats = getBooleanInput("stats", false);
Expand Down

0 comments on commit f0b639c

Please sign in to comment.