Skip to main content

review.gate.next_stage

review.gate.next_stage(spec, directory)

The stage whose page is the next one.

It is the first stage of this gate whose rating is not taken in. A gate has the stages blind and second, and third only if the seal drew a mutant; the seal says which. Only the existence of the rating files is looked at.

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
str str blind, second or third; "" if the gate is not sealed or every
str stage is taken in.

Raises

Name Type Description
ConfigurationError If the directory is not a gate directory.
Failed If gate.toml or seal.toml fails its format.

Examples

from babregen.review.gate import next_stage

print(next_stage.__name__)
next_stage