Skip to content

Extract checks from Config and Problem + clean up config model - #476

Merged
pehrsoderman merged 5 commits into
Kattis:masterfrom
gkreitz:extract_config_checks
Aug 28, 2026
Merged

Extract checks from Config and Problem + clean up config model#476
pehrsoderman merged 5 commits into
Kattis:masterfrom
gkreitz:extract_config_checks

Conversation

@gkreitz

@gkreitz gkreitz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Extracts the last checks from verifyproblem. Cleans up the earlier ugly return value of load_metadata to now only return the parsed metadata.

Progress on #398

diag.error(f"Invalid directory name '{directory}' in {reldir}, should match {regex.pattern}")


def _check_submission_directory_names(probdir: Path, format: FormatVersion, diag: Diagnostics) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shadowing built in "format" is mildly bad style.

@pehrsoderman
pehrsoderman merged commit 6dc880c into Kattis:master Aug 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants