The maintained numerical and registry surface uses the frozen basedpyright
installation (its version is in the generated package table of
current reproduction) with warning failures enabled. The repository-owned
python -m scripts.verify entry point owns the maintained file selection used
locally and by the optional hosted workflows. Type checking runs on the Python
production minor so the interpreter and installed numerical stubs match
the baseline. Numerical mode can also run tests on the other supported
minors of the numerical workflow.
The accepted baseline (.basedpyright/baseline.json) is restricted to reviewed
residual reportAny and reportUnknownMemberType diagnostics, principally from
NumPy array scalar/reduction typing and Matplotlib signatures with untyped keyword
arguments. Unused plotting results and implicit string concatenations are
corrected in source rather than baselined. A baseline does not establish type
completeness or scientific correctness. New code in the checked selection
carries no new diagnostics: arrays are annotated FloatArray, scalars are read
with .item(...), and no bare Exception is caught. The file selection is
types in config/verification_paths.json.
Official baselining
allows these reviewed diagnostics to coexist with a gate that rejects
unbaselined warnings and errors. The result should be described as no
unbaselined diagnostics, rather than zero underlying warnings. Blanket
failOnWarnings=false and project-wide disabling of Any/Unknown diagnostics
are outside this policy.
The verification gate uses --baselinemode=lock. It reads the baseline and
fails if the baseline needs an update. The installed distribution
implements this flag even though its concise help omits it. The
command-line documentation
describes the mode. Baseline writing is reserved for the deliberate review
process below.
Baseline expansion is a deliberate reviewed source change and never admits diagnostics from newly written code. Run the official
writer with the same maintained file list,
project root, frozen environment and checker version, directing
--baselinefile to a fresh execution output. Inspect its rules and diagnostic
inventory before publishing it as .basedpyright/baseline.json under a
repository lease. Moving the baseline destination does not change the project
root: its file keys must remain project-relative. Do not manufacture baseline
entries or admit unchecked errors. Removals should shrink the baseline through
the same reviewed process.
Basedpyright matches baseline entries using the project-relative file path,
diagnostic rule and column. This matching is not a cryptographic source binding
and can confuse diagnostics at similar locations; changed code and baseline
diffs still require review. Separately, reproduction hashes the complete
.basedpyright/baseline.json bytes as a required source input. Changing or
omitting this policy artifact invalidates an earlier reproduction receipt.
The source and frozen dependency hashes in the execution receipt bind that
validation to its actual reviewed context.