jendrikseipp / vulture

Find dead Python code
MIT License
3.29k stars 145 forks source link

Make whitelist configurable #327

Closed mssalvatore closed 9 months ago

mssalvatore commented 9 months ago

I'd like to be able to configure the path to my vulture whitelist in pyproject.toml. At the present time, it appears that vulture must be invoked like vulture TARGET WHITELIST_FILE if you'd like items in the whitelist to be ignored. I'd like to be able to configure path and whitelist in my pyproject.toml so that I can simply invoke vulture.

Thanks!

jendrikseipp commented 9 months ago

You can set the paths variable in pyproject.toml to achieve this: paths = [TARGET, WHITELIST_FILE]

mssalvatore commented 9 months ago

Thanks!