Mathieu Kniewallner
Mathieu Kniewallner
Going to close this one since I was not able to reproduce, and we don't have any feedback. If you are still affected and are able to give more details,...
Do you run deptry from a virtual environment where the dependencies are installed? Without that, deptry [cannot guess the mapping](https://deptry.com/#installation) from the package and the module (unless you specify it...
deptry does support PEP 735, but it intentionally flags the dependencies found in `[dependency-groups]` as development dependencies (since it's mostly the intent behind PEP 735). But technically, on a project...
Having some second thoughts on the new mechanism for falling back to guessing the module name from the package name that this PR would introduce. Several packages don't directly expose...
I've been wondering about this in the past as well, I think it could be interesting, although as you mentioned, there are several open questions (especially regarding the version to...
Do you still encounter the issue, or did you manage to solve it?
Closing, since we did not hear back from the author.
How do you run `deptry`? In the same virtual environment where dependencies are installed? If not, that would explain the issue, since to know which dependencies are transitive, `deptry` needs...
Thanks for the report, the issue is not exactly about having `-` (we even have [a fallback mechanism](https://github.com/fpgmaas/deptry/blob/4fa5a91c8e8d3d14466921808181e479a7543859/python/deptry/dependency.py#L66-L74) for this specific case since it's so common). It actually happens whenever...
> > (btw not sure we should have both a warning and error here) > > Agree though it's somewhat annoying to fix because these happen very far apart from...