creosote: Creosote 3.0.0. fails to detect usage of `ruamel-yaml` 0.18.6.

What happened?

Oh no, bloated venv! 🤢 🪣
Unused dependencies found: ruamel-yaml

Top top-level init.py:

from ruamel.yaml import YAML

Reproduction steps

Add a package(s) to pyproject.toml main dependencies using PDM 2.15.3:

│ ruamel.yaml             │ 0.18.6                        │                                                                        │
│ ruamel.yaml.clib        │ 0.2.8                         │    

Run Creosote.

Relevant log output

Creosote 3.0.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I think I found the problem but I’ll have to do some refactoring as I just whipped up something ugly now, and I would also like to add a test. I can look at this at the end of the week. Feel free to try out my POC in #206.

❯ creosote          
Found dependencies in pyproject.toml: dotty-dict, loguru, pip-requirements-parser, ruamel.yaml, toml
No unused dependencies found! ✨

Ah. I ran -V with --verbose, per the instructions, which I didn’t find to make sense.