dev-tool:config

dev-tool:config@0.0.0

A document is written as one of devToolConfig, resolvedLibraries.

resolvedReference

FieldTypeReq.DefaultDescription
shastringYesThe source state that answered, as the catalog keyed it
shaKindenum one of commit, gittree, treeNoHow that state was arrived at: commit is a clean checkout's own commit, gittree a checkout carrying uncommitted changes, tree a directory that is not a git repository at all. It is recorded because it is what says whether another checkout could obtain the same source, which is the difference between a reference that travels and one that does not.
catalogpathNoThe catalog that answered, as a path. Which of a chain answered is not visible in the artifact, and it is the first thing a reader asks when a resolution surprises them.
resolvedAtdatetimeYesWhen the reference was resolved. A lock is a record of one run, and its age is what says whether it still describes this checkout.
toolingbooleanNofalseWhether the reference was reached only through a vendoredLibraries entry marked tooling -- the repository runs or reads it, and a consumer of what it releases obtains none of it. A release records and requires only what is not tooling, which is also what keeps the tree's release order acyclic: every repository takes the lint rules, and the repository publishing them takes libraries that take them back.

resolvedSchema

FieldTypeReq.DefaultDescription
versionstringYesThe version that answered, as the store addresses it: unmarked, since a marked document is addressed as the version it marks
digeststringYesThe sha256 of the document seeded, as hex. A release matches it against the released copy of that version, so a dependency tested against a marked development state is not taken for the release it shares an address with.
catalogpathNoThe store that answered, as a path
resolvedAtdatetimeYesWhen the reference was resolved

resolvedLibraries

FieldTypeReq.DefaultDescription
schemaVersionversionYesThe version of this document's schema that this document was written under -- granted by the meta-schema to every definition named in metadata.documentRoots, never declared
resolveddict[string, dict[string, resolvedReference]]No{}What each declared coordinate resolved to, by namespace and then by name
schemasdict[string, dict[string, resolvedSchema]]No{}What each vendoredSchemas coordinate resolved to, by namespace and then by name

devToolConfig

FieldTypeReq.DefaultDescription
schemaVersionversionYesThe version of this document's schema that this document was written under -- granted by the meta-schema to every definition named in metadata.documentRoots, never declared
ownRootsset[string]No["src"]The roots this repository owns, relative to its root: what its own commands cover, and where they stop. schema gen and todo list walk these and every pinned repository's; test, lint, format and typecheck cover these alone and stop at each pinned checkout, which --recurse crosses -- under --recurse-mode isolate by running each pinned repository's own command in its own checkout, leaving these roots the whole of what is covered here, and under full by running this repository's tools over the tree, which reads these not at all; and lint rule DATA001 holds these, less schemaGenExcludePaths, to generated data classes. It was srcPaths while generation was the only reader, and the name said input to a generator rather than the boundary four readers now share.
inertPathsset[glob]No["/*.md"]Paths whose changes reach no test and no check, as globs from the repository root -- rooted with / where one names a path there rather than at any depth: documentation, release notes. test, lint and typecheck under --select affected read a change to one as no change at all, where otherwise a path no module owns runs the whole repository. A fact about this repository rather than a choice for one run, so it is configuration. A repository that states none gets the documents at its own root, /*.md, which is what every repository was found stating: a suite that mentions a README writes its own under a temporary root. One whose suite does read a document at its root states the list it means instead, an empty one included.
testReadslist[testRead]No[]What the tests no module owns read, each entry naming tests and the paths a change has to touch to reach them. It is read for a test file in an own root standing outside every module: a statement about the repository's files -- and, where it pins others, about theirs -- which the dependency graph cannot place, since the graph places a module by its imports and such a test reads files no import shows. A test named by an entry runs under test --select affected when a file its reads name changed or a package its dependencies name was reached; one named by none runs whenever anything changed, here or in a checkout this repository pins, which is the answer for a test nobody has spoken for. A fact about the repository's tests, so configuration.
readPathsset[glob]No[]Paths no module owns whose changes reach only the tests that say they read them, as globs from the repository root -- rooted with / where one names a path there rather than at any depth, and one naming a directory names everything beneath it: a workflow file, an installer script, a .gitattributes. A change to one runs the tests whose testReads names it and the tests no entry names, where otherwise a path no module owns runs the whole repository; a change inside an own root that holds such tests runs them all. A check covers the own root holding the path, if one does, and nothing otherwise. A path that configures a tool -- a lock file, the project declaration, the manifest -- is not one: what it reaches is everything, and leaving it out of this list is how that is said.
schemaGenExcludePathsset[glob]No[]Trees under ownRoots that hold no generated types, as globs from the repository root, rooted with / where one names a tree there rather than at any depth. schema gen does not scan them, and lint rule DATA001 reads this same list so that the trees it holds to generated data classes are exactly the ones generation covers. It stays configuration although schema gen is its only command: it states what the repository generates, and a second reader outside the command needs it in a document it can read.
gatelist[gateCommand]No[]The verification gate: the checks dev gate runs, in the order it runs them, each a command of this tool and the arguments it is given -- lint with --fix, schema gen with --validate. A check is reported under the two joined, lint --fix. A repository stating none runs the list this application declares for itself, as defaultAppConfig in its dev.app.yml; that is the one statement of the list: the prose, CI and the release tooling run dev gate and read what it reports rather than restating these. dev gate --recurse adds --recurse to each check whose command declares it, which is read off the command and not written here. It holds no test: dev test is the test command, run beside the gate and never by it, so an entry naming test -- or gate itself -- is refused as GATE_CHECK_NOT_A_CHECK. Configuration rather than an argument: what a repository's gate holds is a fact about the repository, and a check left out for one run is a gate that did not run. A repository that runs more than the default adds to it with gateAdditions and leaves a check out with gateOmissions rather than restating it here, so stating this list is for a repository whose gate reorders its checks.
gateAdditionslist[gateAddition]No[]Checks this repository's gate runs beyond gate, each group placed after the check it names or at the end. It is how a repository adds to the default without restating it: a tree that pins others builds and vendors after the two checks that write, and names those two steps here, so a check dev-tool adds to the default reaches that tree's gate with no edit in it. The same half of the pair gitignoreAdditions is for the shared ignore rules.
gateOmissionsset[string]No[]Checks this repository's gate leaves out, each named as the gate reports it -- the command and its arguments joined, typecheck, lint --fix. They are taken out of the list the gate would otherwise run, gate or the default with gateAdditions placed in it, after the additions. It is how a repository drops a check it has nothing to run with -- one whose adapter declares no type checker leaves out typecheck -- without restating the default, so a check dev-tool adds to the default still reaches it. A name the list does not hold is refused as GATE_OMISSION_UNKNOWN, so a misspelt omission cannot leave the check running unnoticed.
refreshlist[refreshStep]No[]The steps dev tree refresh runs to bring the tree's generated, git-ignored state in step with its source, in the order it runs them, each a command of this tool and the arguments it is given. Unlike a gate's checks, each reads what the one before it wrote, so the run stops at the first that fails. A repository stating none runs the list this application declares for itself, as defaultAppConfig in its dev.app.yml, which is the one statement of it; stating this list replaces it whole. An entry naming no command of this tool is refused as TREE_REFRESH_STEP_UNKNOWN, one naming tree refresh itself as TREE_REFRESH_STEP_NOT_A_STEP, and an empty list as TREE_REFRESH_HOLDS_NO_STEP.
testTierslist[testTier]No[]The tiers this repository's tests are kept in, each named once, and which of them a run that names none collects. A test says its tier by the directory it sits in inside a test directory, as the repository's adapter spells it -- __tests__/__integration__/ in Python -- so nothing per test can be forgotten and a run does not collect a tier it was not asked for. test --tier names the tiers one run collects and test --all-tiers collects every one. A repository stating none takes the list this application declares for itself, as defaultAppConfig in its dev.app.yml: unit, which crosses no process boundary and is what runs after every edit, and integration, which starts real processes or builds real repositories and catalogs and runs on CI or when it is asked for. Every test is in the directory of a tier listed here: one kept directly in a test directory, or under a directory spelling a tier this list does not name, is refused as TEST_NOT_IN_A_TIER, so a further tier is one more entry here rather than a folder somebody made. This list is all that says which directories are tiers. Configuration rather than an argument: which tiers exist is a fact about the repository, and which run by default is what an edit is owed, not a choice for one run -- that choice is --tier.
coordinatePatternregexNoThe pattern each half of a coordinate declared in this repository's tree has to match in full: a manifest's namespace, the name of every module it declares, and a schema document's metadata.name and metadata.namespace, in this repository and in every checkout it pins. project list --validate and schema list --validate refuse one that does not, as COORDINATE_PATTERN_MISMATCH. Absent, nothing is asked: how a coordinate is spelled is a convention a tree keeps, not a rule this tool has, so the tree that wants one spelling states it here, once, at the root its gate runs from. A pattern that does not compile is refused where this file is read.
vendoredSchemasset[coordinate]No[]Schema documents this repository references by coordinate and does not hold, each named by that coordinate. Generation seeds each one into this repository's own store, reading it from the stores its schema catalog defers to -- so a reference to schema:metaschema resolves against a store inside this repository rather than against one it happened to be nested in. It is the schema half of vendoredLibraries: what a repository obtains rather than finds around it, declared as a coordinate rather than as a path into somebody else's checkout.
prebuiltExecutablesdict[string, string]NoExecutable modules this repository does not build, keyed by module name, each naming the file somebody else's build produces. A relative path resolves against the repository root. The named file is copied into the build location as that module's artifact and asked whether it starts, and no adapter is invoked for it. It exists for a repository we do not own: the client's build can go on producing the executable exactly as it does now, while everything downstream -- the build location, the boot check, whatever consumes the artifact -- sees one where it expects one, and our build system is integrated a module at a time rather than all at once. A declaration here is not a cache entry and --rebuild does not override it: there is nothing to rebuild, because the repository has said this module is not ours to build.
vendoredLibrarieslist[vendoredPackage]No[]What this repository obtains rather than finds beside it, each named by the coordinate a build catalog holds it under. vendor looks each one up in this repository's build catalog and the upstream ones it names, and unpacks the archive where the entry says -- so a dependency arrives as source this repository placed rather than as something a language's package manager installed from a path outside it.
gitignoreAdditionslist[string]No[]Ignore rules this repository needs and the others do not, written below the marker dev gitignore gen puts at the foot of its .gitignore. Everything above that marker is the shared set, which dev-tool declares once with the reason for each entry beside it, so a repository with one extra rule states one line rather than restating the shared set to add to it. Configuration rather than an argument for the same reason ownRoots is -- it states a fact about this repository, and a value somebody would want to change for a single run is not one of them.
gitignoreOmissionsset[string]No[]Shared ignore rules this repository does not take, each spelled exactly as the shared set spells it. A rule is shared because it is right for every repository here, so an omission is a statement that this one is different in a way the shared set cannot be: a repository that keeps its adapter catalog's repo-adapter/ as a checkout it develops, rather than obtaining it, omits that rule. The generated file names each omission and says the reason is here, so a reader meeting the gap is not left guessing.
repoAdapterCommandsdict[enum, adapterCommandOverride] one of build, test, lint, format, typecheck, syncNo{}Commands this repository runs instead of the ones its repo adapter would produce, keyed by adapter method -- build, test, lint, format, typecheck or sync, and a key that is none of them is refused where the configuration loads. A repository whose peculiarity is one command states the command here rather than carrying an adapter of its own: an adapter describes a language, and a fork of one to change a single invocation is a language implementation with one repository's exception compiled into it.
featuresdict[string, boolean]No{}The feature flags this configuration switches, keyed by the name the application declares each under in its *.app.yml, true for on: a flag left out takes the default its declaration states, and a name the application does not declare is refused -- granted by the meta-schema to every definition named in metadata.configRoots, never declared

gateAddition

FieldTypeReq.DefaultDescription
afterstringNoThe command these follow, as gate names it -- lint. Absent, they run after every check gate holds. Several additions naming one command run in the order they are written. A command gate does not hold, or holds more than once, is refused as GATE_ADDITION_UNANCHORED, since a check placed nowhere is one that silently does not run.
commandslist[gateCommand]YesThe checks added, in the order they run, each a command and its arguments, as an entry of gate is.

gateCommand

FieldTypeReq.DefaultDescription
commandstringYesThe command, as it is invoked: its group where it has one and its name, schema gen, or its name alone, format.
argslist[string]No[]The arguments the command is given, each as one token of its command line. --recurse is never among them: dev gate --recurse adds it where the command declares it.
placementenum one of both, ci, localNo"both"Where the check runs: both, a session's gate and CI's; ci, CI's alone; local, a session's alone. dev gate runs the both and local checks and names the ci ones it leaves out, dev gate --ci runs the both and ci checks and names the local ones, and dev gate --all runs every one, which is what a release is held to. A check is ci when what it catches is rare after an ordinary edit and costs every edit cycle its seconds: a marker, a crossing, a dependency validation. It is local when every session has already run it on the tree it pushes and CI would only pay for it a second time -- which trades away CI's answer for a commit made without the gate, so a session runs dev gate before it commits.

refreshStep

FieldTypeReq.DefaultDescription
commandstringYesThe command, as it is invoked: its group where it has one and its name, schema gen, or its name alone, vendor.
argslist[string]No[]The arguments the command is given, each as one token of its command line, --recurse among them where the step crosses into the repositories this one pins: nothing adds it.

testTier

FieldTypeReq.DefaultDescription
namestringYesThe tier, as test --tier names it and as the adapter spells the directory its tests are kept in: integration is __integration__ in Python.
defaultbooleanNofalseWhether a run that names no tier collects this one. The tiers a run after every edit is owed say so; one that is CI's, or run on request, does not.
isolatedbooleanNofalseWhether a test in this tier may start no process. The adapter holds it: a test in an isolated tier that starts one is failed, naming what it started, so the tier is a statement about its tests rather than a name on a folder. It is what a unit tier means -- a test that stands the process boundary in -- and what keeps the run after every edit from being the run that contends.

testRead

FieldTypeReq.DefaultDescription
testsset[glob]YesThe test files this entry speaks for, as globs from the repository root, rooted with / where one names a path there rather than at any depth. A file several entries name reads what all of them say.
readsset[glob]No[]The paths those tests read, as globs from the repository root, a path inside a checkout this repository pins written from this root like any other: .gitignore is every repository's copy at any depth, /.github/workflows/*.yml this root's alone. A change to a file one of these matches runs the tests. A kind of file is what belongs here; code a test imports or runs is a package, and is named in dependencies.
dependenciesset[floatingCoordinate]No[]The packages those tests import or run, each by coordinate as a manifest names a dependency: one of this repository's own modules under its namespace, or a package a pinned repository publishes. A change that reaches one -- in it, or in anything it depends on -- runs the tests. An entry stating neither this nor reads names support: a file the runner reads as test code and that depends on nothing of the tree, run with its own root and never for itself.

vendoredPackage

FieldTypeReq.DefaultDescription
coordinatecoordinateYesThe package to obtain, as namespace:name -- floating, as a development reference is; a release writes the @version
vendorPathpathNoWhere to unpack it, relative to the repository root. It overrides the vendorPath the producer's manifest declares, and without either it is lib/<name>, which is where a package a language imports has to be for one directory to answer for every dependency. The same name as the producer's default and as vendor's output, because all three are the one location.
toolingbooleanNofalseWhether the package is tooling the repository runs or reads rather than a dependency its modules have -- the shared instructions, the lint rule set. Every other entry has to be named by an edge of a module the repository holds, because the manifest is the declaration and this list only says how it is delivered; a tooling entry has no edge to be named by, and says so here instead of being guessed at.

adapterCommandOverride

FieldTypeReq.DefaultDescription
executablestringYesThe program to run in place of the adapter's command, found on PATH the way a shell would find it.
argslist[string]No[]The arguments every run passes to executable, in order and before any passthroughArgs.
passthroughArgslist[adapterCommandArgument]No[]Arguments appended to args, each read from a value the run knows rather than written into the declaration. A declared command replaces the adapter's producer outright, and a producer is handed the flags a run carried -- --fix, the configured exclude paths, the selected paths -- so without this a declaration is a command that can only ever be invoked one way.

adapterCommandArgument

FieldTypeReq.DefaultDescription
valuestringYesThe name of the run value this argument is read from: one of the command's own inputs (fix, exclude), a field of this configuration document (ownRoots), or paths for the selection the run resolved. An input wins over a configuration field of the same name, and a name that is neither is an error rather than an empty argument. Prefer an input. A value a repository wants standing rather than typed is an argument default, which belongs under argDefaults in the CLI's own runtime config, where a flag can still shadow it -- reading it off this document instead fixes it at one value and leaves the command line with nothing to say.
flagstringNoThe option token this value is passed under. A boolean emits it alone when true and nothing when false; a list emits it once before each item; a scalar emits it once before the value. Omitted, the value is passed positionally, which is what a path selection usually wants.
formenum one of written, anchoredNo"written"How a glob the value holds is written for the program. written, the default, passes each as it is written. anchored writes each the way a program reads it that anchors a pattern holding a separator at its working directory and reads a lone name at any depth, as ruff's --extend-exclude does: a rooted glob from ./, an unrooted one of several segments as **/<glob> and **/<glob>/**, so the program names what the glob names.

Used by

The versions of each application and library holding this build.

Held byVersions
dev-tool0.0.0