pll-python 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +10 -2
- package/package.json +1 -1
- package/worker.cjs +13 -13
package/cli.cjs
CHANGED
|
@@ -975,11 +975,14 @@ function cardBody(card) {
|
|
|
975
975
|
body.push({
|
|
976
976
|
kind: "line",
|
|
977
977
|
tone: "warn",
|
|
978
|
-
text: `${BUGGY}caught ${card.caught} of ${card.total} - missed ${card.missed.join(", ")}.`
|
|
978
|
+
text: `${BUGGY}caught ${card.caught} of ${card.total} - missed ${card.missed.map(chaffLabel).join(", ")}.`
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
return body;
|
|
982
982
|
}
|
|
983
|
+
function chaffLabel(id) {
|
|
984
|
+
return /^\d+$/.test(id) ? `#${id}` : id;
|
|
985
|
+
}
|
|
983
986
|
var UNMOUNTED_HINT = "Your tests are checked on their own, so files next to your program are not available while that happens.";
|
|
984
987
|
function isFileAccessError(message) {
|
|
985
988
|
return /^(FileNotFoundError|IsADirectoryError|NotADirectoryError|PermissionError|ModuleNotFoundError|ImportError):/.test(
|
|
@@ -1882,6 +1885,11 @@ async function verify(runtime, view, bundle, testsPath) {
|
|
|
1882
1885
|
} catch {
|
|
1883
1886
|
view.note("could not load pytest; assertion messages will be terse.");
|
|
1884
1887
|
}
|
|
1888
|
+
try {
|
|
1889
|
+
await runtime.ensurePackages(testSource);
|
|
1890
|
+
} catch (err) {
|
|
1891
|
+
view.note(`could not load libraries (${errorText(err)}); imports may fail.`);
|
|
1892
|
+
}
|
|
1885
1893
|
const result = await runtime.examplarRun(
|
|
1886
1894
|
testSource,
|
|
1887
1895
|
JSON.stringify(bundle),
|
|
@@ -2581,7 +2589,7 @@ ${USAGE_HINT}
|
|
|
2581
2589
|
return EXIT.ok;
|
|
2582
2590
|
}
|
|
2583
2591
|
if (args.version) {
|
|
2584
|
-
process.stdout.write("0.
|
|
2592
|
+
process.stdout.write("0.9.0\n");
|
|
2585
2593
|
return EXIT.ok;
|
|
2586
2594
|
}
|
|
2587
2595
|
if (args.error !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pll-python",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Run Python with PLL's language levels from the command line: level checks, in-file tests, friendly errors and the built-in image and table libraries, all on Pyodide. No Python install needed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|