Skip to content

Tasks ​

Every task the repository declares sits below beside its alias and its description, written from what mise tasks reports, so a task added under .mise/tasks/ reaches this page through the next mise run docs:render. The tasks a user runs to build the store come first, and every other task, each one a contributor runs to check, build, or publish Scotch, follows under its group.

Tasks a User Runs ​

TaskAliasDescription
data:fetchDownload each file sources.toml declares into a folder named for its host under .cache/data/downloads
data:indexBuild the index under .cache/data/index from the files data:fetch downloaded

Tasks a Contributor Runs ​

data ​

TaskAliasDescription
data:publishWrite the store the site matches against under .cache/data/store from the index data:index built

docs ​

TaskAliasDescription
docs:renderWrite each file a declaration in the repository renders into, and each one the index renders into where one has been built

gha ​

TaskAliasDescription
gha:cutCreate or refresh the draft release of the version on main
gha:orderDecide a ♟️ Deploy run's commit and whether it builds the store
gha:pruneDelete each cache a newer one replaced
gha:retireDelete each store file R2 holds past the newest earlier ones
gha:reuseCopy the coverage total ♟️ CI attached for the tree on main
gha:scoresheetWrite the workflow run's summary and exit with its verdict
gha:totalWrite the total the package's suite covered as a whole number into coverage.json in the folder given, creating the folder where missing, which the published site serves

lock ​

TaskAliasDescription
lock:auditFail where an advisory database cannot be reached, on any advisory published for a package uv.lock, a task script's lockfile, or rust/Cargo.lock resolves, on any bun audit reports for a package docs/bun.lock resolves, other than one whose GHSA- id AUDIT_IGNORE lists while no release fixes it, on any mise audit reports for a tool .mise/config.toml pins, other than one AUDIT_IGNORE lists for a contributor to check by hand while mise audit names no fixed release, or on a crate whose license, version, or source breaks a rule of rust/.cargo/deny.toml, and name each tool mise audit lists as unchecked
lock:checklockfileVerify every lockfile is in sync with its manifest
lock:liftliftList every pin lagging its newest release, try the lift in a scratch clone under --try, and write it as one diff under --write
lock:syncrelockRe-resolve every lockfile against its manifest

py ​

TaskAliasDescription
py:affectedaffectedRun the tests a change reaches under pytest-testmon, beside each test that failed on its last run, after py:full reruns the whole suite where a file testmon cannot trace, or a file under src/scotch/cli/ whose docstrings the help snapshots read, changed since the last run that passed or failed its tests, and passing any further arguments to pytest
py:checkcheckReport every formatting rewrite and lint finding, as annotations under GitHub Actions, passing any further arguments to the formatter
py:coveragecoverageRun the test suite under coverage, failing below fail_under, writing the HTML report, and passing any further arguments to pytest
py:formatformatRewrite the Python source to the house style, passing any further arguments to the formatter
py:fullRun every test under pytest-testmon, exiting zero where tests fail so py:affected reruns them, and skipping the run while no file testmon cannot trace, and no file under src/scotch/cli/ whose docstrings the help snapshots read, has changed since the last run that passed or failed its tests
py:testtestRun the test suite, passing any further arguments to pytest

repo ​

TaskAliasDescription
repo:auditReport every place the repository's configuration drifts from itself, as annotations under GitHub Actions
repo:bumpbumpMove [project].version to its next patch, minor, or major version and relock uv.lock
repo:ciciRun every check a pull request runs, from the lockfiles to the site's links
repo:labelslabelsCreate or update every label .github/labels.toml declares on GitHub, listing each live label it omits
repo:lintAudit every workflow and action manifest through zizmor, online wherever a GitHub token is set, as annotations under GitHub Actions
repo:rulesetsrulesetsApply the rulesets under .github/rulesets/ and send every setting .github/settings.toml declares, listing each live ruleset no file names

rs ​

TaskAliasDescription
rs:checkReport every rewrite rustfmt would make to the crate and every lint Clippy finds in it under each feature, passing any further arguments to Clippy
rs:formatRewrite the crate in the form rustfmt sets, passing any further arguments to cargo fmt
rs:testRun the crate's tests, passing any further arguments to cargo test
rs:wasmBuild the crate to WebAssembly and write its wasm-bindgen module into docs/.vitepress/lib/games/crate for the site

site ​

TaskAliasDescription
site:affectedRun the site's tests a change since the branch left origin/main reaches, or the whole suite where the change reaches a file the Vitest config names in forceRerunTriggers, passing any further arguments to Vitest
site:coverageRun the site's suite under coverage, failing where statements, branches, functions, or lines fall below the fail_under that pyproject.toml sets, writing the HTML report, and passing any further arguments to Vitest
site:cruftcruftReport an unused file, export, or dependency in the site and its suite, and an import cycle, passing any further arguments to knip
site:drawdrawDraw the README's preview of the Viewer and its Where to Start cards from the site's own drawings into docs/assets/readme
site:installInstall the site's packages from docs/bun.lock, pruning any it no longer names, remove a root node_modules or package.json link an earlier install made, leaving a real file or folder there in place, and link tests/node_modules to docs/node_modules, so the suite under tests/site/ resolves them, skipping all of it where docs/bun.lock and docs/package.json hold the contents of the last install and both docs/node_modules and the tests/node_modules link stand
site:linkslinksCheck every link, asset, and heading fragment in the site site:press built, the README, and the contributor guide with no network, passing any further arguments to lychee
site:lintlintLint the site's TypeScript with Oxlint, as annotations under GitHub Actions, passing any further arguments to Oxlint
site:presspressBuild the site and a card per page into docs/.vitepress/dist, failing on a link between pages that leads nowhere, and passing any further arguments to VitePress
site:serveserveServe the site locally, reloading a page as it is edited, and passing any further arguments to VitePress
site:testRun the site's suite, passing any further arguments to Vitest
site:typechecktypecheckType-check the site's TypeScript, failing on a single-file component tsc cannot read, and passing any further arguments to tsc
Built from22ebd11
CodeJybbs/scotch
GamesPGN Mentor
Crateshakmaty, GPL
FacesSIL OFL 1.1
PiecesCburnett, BSD

Scotch 0.2.0, under the GPL-3.0-or-later.