Skip to content

Add scope queries, layout position and the API - #25

Draft
C-Achard wants to merge 4 commits into
cy/project-snapshotsfrom
cy/project-scope-position
Draft

C-Achard wants to merge 4 commits into
cy/project-snapshotsfrom
cy/project-scope-position

Conversation

@C-Achard

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

Copy link
Copy Markdown
Member

Scope queries, layout position, and the first part of the public API.

  • findings_in_scope: the findings anchored in a node's subtree, at its ancestors, and on the config fields it depends on. Conservative, positional and widen-only.

  • locate_in_layout: where a path outside a known project sits in the layout, scanned upward. Only certain segments enter the instance; a folder that fits by position alone is returned as a detached candidate.

  • dlccore.project.api: helpers, findings_in_scope and FileResourceKind for now. inspect_project joins with inspection, the content entry points with content.

  • tests/upstream/test_napari_deeplabcut.py compares napari-deeplabcut's reads with dlccore's, marked destination("napari-deeplabcut"). It needs napari-deeplabcut installed and skips without it.

  • The scope and position tests that need inspect_project or later finding codes land with those.

@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 scope position Add scope queries, layout position and the API Nov 26, 2026
@C-Achard C-Achard added 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-scope-position branch from c849216 to aaacbbf Compare November 30, 2026 08:14
@C-Achard
C-Achard force-pushed the cy/project-scope-position branch 3 times, most recently from 69d9b47 to 081f5cc Compare November 30, 2026 11:07
- Rename the packages to dlccore.project and dlccore.io, and add the dlccore license header
- Land the API package partially: helpers, findings_in_scope and FileResourceKind; inspect_project and project_name follow with inspection, the content entry points with content
- Add the tests that run at this layer: five of tests/discovery/test_position.py, two of tests/inspection/test_policy.py, four of tests/inspection/test_scope_query.py; the rest need inspect_project, validation results or later finding codes
- Port tests/upstream/test_napari_deeplabcut.py, marked destination("napari-deeplabcut")
- Reword the scope module's docstring, which named Octopus
@C-Achard
C-Achard force-pushed the cy/project-scope-position branch from 081f5cc to 6e8a7c9 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

validation Discovery, validation, findings and snapshots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant