deptry icon indicating copy to clipboard operation
deptry copied to clipboard

Detecting dependency for packages that export multiple modules

Open CiottiGiorgio opened this issue 1 year ago • 0 comments

I am using the Python package puya which is a custom language. This package exports two modules. Namely: puya which is the compiler and puyapy which are the stubs used to define this language.

In my code, I'm only using the stubs but I'm getting a DEP001 for puyapy even though the dependency is correctly defined as puya in my pyproject.toml

The behaviour should probably be that, if at least one module in a package is used, the package shouldn't be considered a missing dependency definition?

CiottiGiorgio avatar Dec 14 '23 15:12 CiottiGiorgio