Skip to content

Commit

Permalink
Formatting and lint fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jan 25, 2024
1 parent 86ad5d7 commit 62ad588
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Tool/ToolSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ onMounted(() => {
<div v-if="jobResponse.produces_entry_points">
<ToolEntryPoints v-for="job in jobResponse.jobs" :key="job.id" :job-id="job.id" />
</div>
<ToolSuccessMessage :job-response="jobResponse" :tool-name="toolName" :used-tool-request="usedToolRequest"/>
<ToolSuccessMessage :job-response="jobResponse" :tool-name="toolName" :used-tool-request="usedToolRequest" />
<Webhook type="tool" :tool-id="jobDef.tool_id" />
<ToolRecommendation v-if="showRecommendation" :tool-id="jobDef.tool_id" />
</section>
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Tool/structured.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function structuredInputs(formInputs: object, toolInputs: Array<ToolParam
const validationResult = validateParameters(structuredInputs, toolInputs);
if (validationResult.length !== 0) {
console.log(`Failed structured input validation with... '${validationResult}'`);
throw "Failed parameter validation";
throw Error("Failed parameter validation");
}
return structuredInputs;
}
Expand Down Expand Up @@ -196,7 +196,7 @@ function simpleCwlTypeChecker(parameterModel: ToolParameterModel) {
} else if (isCwlFloat(parameterModel)) {
checkType = isFloat;
} else {
throw "Unknown simple CWL type encountered.";
throw Error("Unknown simple CWL type encountered.");
}
return checkType;
}
Expand Down
6 changes: 2 additions & 4 deletions lib/galaxy/tool_util/parameters/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
# https://stackoverflow.com/questions/56832881/check-if-a-field-is-typing-optional
# Python >= 3.8
try:
from typing import (
get_args, # type: ignore[attr-defined]
get_origin, # type: ignore[attr-defined]
)
from typing import get_args # type: ignore[attr-defined]
from typing import get_origin # type: ignore[attr-defined]
# Compatibility
except ImportError:

Expand Down

0 comments on commit 62ad588

Please sign in to comment.