mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 20:26:33 +00:00
ruff format reflows long calls and normalises quotes, isort reorders the imports of the documentation lint package, SIM117 folds nested `with` statements into one parenthesised block, TC003 moves typing-only imports under `if TYPE_CHECKING`, the JavaScript linter replaces a `var`, and the YAML formatter rewraps five role files. None of it changes behaviour. One entry does more than that: the formatter had reflowed two calls in test_builder.py so their `# nocheck: cache-read` markers landed on the closing parenthesis, where they suppress nothing and the cache-read lint would have reported two real violations. Both calls are hoisted into a variable so the marker sits on the reading line again. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
12 lines
305 B
JavaScript
12 lines
305 B
JavaScript
(function () {
|
|
if (typeof window.mermaid === "undefined") {
|
|
return;
|
|
}
|
|
const dark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
window.mermaid.initialize({
|
|
startOnLoad: true,
|
|
securityLevel: "strict",
|
|
theme: dark ? "dark" : "default",
|
|
});
|
|
})();
|