-
Notifications
You must be signed in to change notification settings - Fork 16
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
How to handle tools (not imported) that end up being reported as "unused" dependencies #117
Comments
Adding to the list above:
A quick fix could be to report those in a different category in the human-readable output:
|
Maybe. I'm a little afraid of making the output too complex. I guess the average user wants a green "all OK" or a red "these must be fixed" result, and these are somewhere in-between, depending on context. I'd rather provide them with an option for controlling whether or not we consider common dev tools as unused, and simply use that to include/exclude them in the "unused" result. Maybe something like:
|
Based on our discussion today, we agreed on using a default list for the I'll list the dev dependencies (not complete version) here:
|
Thanks Zhihan! I am not sure about |
Oh thanks for spotting this! Actually |
If we're hardcoding a list of tools that FawltyDeps should The above is a good starting point, but we should not believe that we're anywhere near finished curating this list... 😅 |
Attempting to complete the list: [
"autopep8", # Automatic PEP 8 formatting
"mccabe", # complexity plugin for flake8
"pre-commit", # Pre-commit hooks
"pyformat", # Formatting
"pytest-cov", # Coverage plugin for pytest
"pytest-mock", # Mocking plugin for pytest
"pytest-xdist", # Parallel test execution
"bandit", # Security static analysis
"sphinx", # Documentation generation
"recommonmark", # Markdown support for Sphinx
"sphinx-rtd-theme", # Theme for Sphinx
"pydocstyle", # Docstring style checking
"pyflakes", # Formatting
"rope", # Refactoring
"ruff", # Linting in Rust
"twine", # Package publishing
"unify", # unifying quote styles
"yapf", # Yet another code formatting option
] I think it makes to also split those (with a separator comment inside the list) into their respective groups (formatting, linting, security, documentation, etc.. ) |
Thanks for digging into this @Nour-Mws. Note that I'm happy to ship an incomplete list in the initial version of this, as long as we are prepared to add more tools that people suggest. I'm not familiar with most of the tools in the above list. Most of them seem like tools you'd run from the command-line, but I'm not sure about the Should we have a different mechanism for |
I agree. It makes more sense not to include them here. |
Copying my comment from the PR, as it probably rather belongs in this dicussion:
|
From #112 (comment):
More thought is probably needed about how best to solve this, but we will probably want to do something about this fairly soon, as there are enough of these tools that will keep showing up as "unused dependencies"...
The text was updated successfully, but these errors were encountered: