deepmodeling / deepmodeling/dpdata

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

Open
#1,004 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
254
Forks
158
Avg merge
4d 1h
Merged PRs (30d)
2

Description

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:
https://github.com/deepmodeling/dpdata/blob/a7a50bfc096e1a65470af6f1c48152dc0275ec1c/pyproject.toml#L131-L134

Current configuration:

```toml
[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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.