-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support wildcards in ignore-unused
.
#478
Comments
Thank you for your request! I'm not opposed to adding wildcard support for I started looking at adding
Moving on to the I'd rather classify pytest plugins in our "tool" category, for which we already provide a default list here. (of course, as soon as you provide your own Adding But of course, in order to do so, we must in fact support wildcards, and I don't see why these should not be generally available to our users, as well. So let's add those. But let's also make sure that you don't need to use them in the first place 😄 |
Yeah,
Sorry, I think my brain jumped to a solution. As for types, I have the following flagged (the code under scrutiny is closed-source 😞 so I can't show you anything more useful)
I have (correctly) not had, e.g. For pytest plugins I have a small list:
Which, as you say: are all plugins that aren't imported, they provide fixtures (or coverage reporting). For what it's worth we also have |
Is your feature request related to a problem? Please describe.
I have a codebase with types stubs and pytest plugins as dev dependencies. When running
fawltydeps
they all appear as false positives (they're notimport
ed directly in our codebase but they're providing pytest fixtures and typing support).Now, I know I can individually
ignore-unused
in the configuration, but there are a lot of them. So I end up maintaining a rather long list of package names for this tool to ignore (list ofpytest-x
andtypes-y
) in addition to the actual dependencies.Describe the solution you'd like
I'm not sure if there's a better way, but something that comes to mind would be to support wildcards:
Describe alternatives you've considered
This could maybe be automatically handled in the logic of the code, something like how you handle the
"-stubs"
suffix. But I'm not sure that's better.Additional context
The text was updated successfully, but these errors were encountered: