Skip to content

[Code scan] Pyright configuration excludes most format and plugin modules #1004

Description

@njzjz

This issue is part of a Codex global repository code scan.

The Pyright configuration only includes top-level dpdata/*.py files. Most implementation code lives in nested packages under dpdata/formats, dpdata/plugins, and dpdata/md, so the type-check workflow has limited coverage of the format/plugin code paths where most parsers and writers live.

Affected config:

dpdata/pyproject.toml

Lines 131 to 134 in a7a50bf

[tool.pyright]
include = [
"dpdata/*.py",
]

Current configuration:

[tool.pyright]
include = [
    "dpdata/*.py",
]

Repository shape from git ls-files dpdata '*.py' shows many nested modules outside this include pattern, including all parser/writer modules under dpdata/formats and registry modules under dpdata/plugins.

Suggested improvement: expand Pyright coverage to include nested package modules, or explicitly document why nested format/plugin modules are excluded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions