-
Notifications
You must be signed in to change notification settings - Fork 148
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
ignore click functions #329
Comments
Have you tried ignoring these functions with |
I must confess I haven't tried it, but I assume import click
@click.group()
def cli1():
pass
@cli1.command()
def cmd1():
"""Command on cli1"""
@click.group()
def cli2():
pass
@cli2.command()
def cmd2():
"""Command on cli2""" I suppose one could be sure to manually add an * unless there is some real deep magic going on in Vulture? 😁 |
You can use a wildcard * to catch all name variations. Can you try this and post the solution here? |
Would a feature be welcome to detect and ignore click methods?
I already have them all grouped in a
cli/
sub-dir which I can--exclude
,but it would be nice if Vulture could figure it out 😁
I think it'll require more than just adding to
whitelists/
since the names are arbitrary, but...Since click uses a decorator which makes the functions an instance of
click.Command
, I think it could be as easy as:... and in a
find_spec
check to see if theclick
is available.The text was updated successfully, but these errors were encountered: