Skip to main content

review.coding.next_stage

review.coding.next_stage(root, directory)

The stage whose page is the next one.

It is own until answers-own.toml exists, then final until answers-final.toml does. Only the existence of the files is looked at.

Parameters

Name Type Description Default
root Path The project root. required
directory Path | str The review directory. required

Returns

Name Type Description
str str own or final; "" if both are taken in.

Raises

Name Type Description
ConfigurationError If the directory holds no coding.toml.

Examples

from babregen.review.coding import next_stage

print(next_stage.__name__)
next_stage