Skip to main content

review.coding.status

review.coding.status(spec, directory)

Where a coding directory stands, and what blocks the next step.

The stage is found from coding.toml, the page files, the answers files and git. Whether a proposal file is present is a test of the files with fixed names; whether the proposals pass the check is reported only once answers-own.toml is committed (and until the final answers are taken in), because the first stage reads nothing below proposals/. The reason is what page raises or returns in the same state: a run that changed, the version, the own answers that wait for their commit, or the problems of the proposals joined by ;. With no proposal at all the stage is proposals-pending and the reason is that there is no second stage.

Parameters

Name Type Description Default
spec RegenSpec The loaded records of the project. required
directory Path | str The review directory. required

Returns

Name Type Description
ReviewStatus ReviewStatus The stage (a word of vocab.CODING_STATUS), the next step (a word of vocab.CODING_STEPS), the reason, the version that started the directory, the number of runs, whether a proposal is present, whether the proposals pass, and whether the next evidence file is committed.

Raises

Name Type Description
ConfigurationError If the directory is not a coding directory.

Examples

from babregen.review.coding import status

print(status.__name__)
status