jendrikseipp / vulture

Find dead Python code
MIT License
3.41k stars 150 forks source link

Filtering out calls to a deadcode from individual directories #252

Closed karolpawlowski closed 3 years ago

karolpawlowski commented 3 years ago

Hi,

is there a way in vulture to mark code as dead even if it is called from directories that aren't "production" code, eg. unit tests?

Regards Karol

RJ722 commented 3 years ago

Hey, Karol! not sure what you mean here: do you want to mark used code as dead here? or are you looking for ways to ignore test directories?

karolpawlowski commented 3 years ago

Ignore test directories, to not count calls to some methods from test directories.

niedz., 28 lut 2021 o 11:32 Rahul Jha notifications@github.com napisał(a):

Hey, Karol! not sure what you mean here: do you want to mark used code as dead here? or are you looking for ways to ignore test directories?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jendrikseipp/vulture/issues/252#issuecomment-787430489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWHBLRJ2GIQEFING5NJZOLTBILUTANCNFSM4YCGSOVA .

RJ722 commented 3 years ago

You can use the exclude parameter, --exclude tests/

jendrikseipp commented 3 years ago

Thanks, @RJ722 for handling this!