Skip to content

Add config discovery and validation - #27

Draft
C-Achard wants to merge 2 commits into
cy/project-validation-structurefrom
cy/project-validation-config
Draft

C-Achard wants to merge 2 commits into
cy/project-validation-structurefrom
cy/project-validation-config

Conversation

@C-Achard

@C-Achard C-Achard commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Config discovery and validation.

  • ConfigFindingCode: read, parse, validation and load failures, config version migrations, no keypoints, null keys defaulted.

  • The raw read keeps the config as written; validation loads it through dlccore.config.ProjectConfig and reports what the load changed.

  • ValidationContext, the config observation every later check reads.

  • The two CONFIG_PROJECT_PATH_* codes land with project_path validation.

  • Three code descriptions now say the config schema, not DeepLabCut, migrated a version or supplied a default.

  • Adds the valid_config_data and invalid_project fixtures.

@C-Achard
C-Achard added this pull request to stack #18 November 26, 2026 15:06
@C-Achard C-Achard changed the title cy/project validation config Add config discovery and validation Nov 26, 2026
@C-Achard C-Achard added canonical Changes something consumers rely on: finding codes, snapshot format, written files consumer: datajoint Needed by or affects the DataJoint pipeline consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut validation Discovery, validation, findings and snapshots and removed consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut consumer: datajoint Needed by or affects the DataJoint pipeline labels Nov 26, 2026
@C-Achard
C-Achard force-pushed the cy/project-validation-config branch from 0d12358 to 7ae0fc9 Compare November 30, 2026 08:14
@C-Achard
C-Achard force-pushed the cy/project-validation-config branch 3 times, most recently from c1c4ee6 to 6633964 Compare November 30, 2026 11:07
- Rename the packages to dlccore.project, take the config schema from dlccore.config, and add the dlccore license header
- Declare ConfigFindingCode without CONFIG_PROJECT_PATH_MISMATCH and CONFIG_PROJECT_PATH_NOT_ABSOLUTE, which land with project_path validation
- Name the config schema, not DeepLabCut, as what reads, migrates and defaults a config, in docstrings and in three code descriptions
- Export the validation context from validation
- Add the valid_config_data and invalid_project fixtures; the latter's FIXME no longer names anyone
- The closed-catalogue test now expects ConfigFindingCode too
@C-Achard
C-Achard force-pushed the cy/project-validation-config branch from 6633964 to f299b4c Compare November 30, 2026 15:10
@C-Achard
C-Achard removed this pull request from stack #18 November 30, 2026 15:16
@C-Achard
C-Achard added this pull request to stack #42 November 30, 2026 15:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

canonical Changes something consumers rely on: finding codes, snapshot format, written files validation Discovery, validation, findings and snapshots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant