-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unintended behavior when using multiple source code files/folders #147
Comments
This issue has been open for 7 days with no activity. Remove the stale label or add a comment or it will be closed in 3 days. |
This issue has been open for 7 days with no activity. Remove the stale label or add a comment or it will be closed in 3 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
@sanmai-NL I just took another look at this. So, I've created two files: # 147/file1.py
import distlib
import dotty_dict
import loguru
import pip_requirements_parser # 147/file2.py
import toml Then I run creosote from within this repo (which uses this repo's pyproject.toml by default) which means it looks for distlib, dotty-dict, loguru, pip-requirements-parser, toml: ❯ creosote -p 147/file1.py
Found dependencies in pyproject.toml: distlib, dotty-dict, loguru, pip-requirements-parser, toml
Oh no, bloated venv! 🤢 🪣
Unused dependencies found: toml ❯ creosote -p 147/file1.py 147/file2.py
Found dependencies in pyproject.toml: distlib, dotty-dict, loguru, pip-requirements-parser, toml
No unused dependencies found! ✨ To me this is the desired behavior;
I don't think what you wrote is accurate here:
So I am closing this issue. Let me know if you think this is wrong and we can re-open it. |
It's possible that there has been some confusion here around the intended use of the The intended use is I'm by the way addressing this for creosote v3.0.0 and you can preview this feature by enabling it using |
What happened?
As reported by @sanmai-NL in #128 (comment):
This was actually never my intent. Instead my intent is:
An unused dependency is one that isn't referenced at least once in all the Python source code, defined with the
-p
/--paths
argument.Reproduction steps
Needs steps to reproduce here.
Relevant log output
The text was updated successfully, but these errors were encountered: