jendrikseipp / vulture

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

Add whitelist for string.Formatter #184

Closed jbylund closed 4 years ago

jbylund commented 4 years ago

Description

Vulture can mistake methods of child classes of string.Formatter as unused. Add a whitelist to deal with this.

Related Issue

183

Checklist:

RJ722 commented 4 years ago

Thanks for the PR @jbylund!

The CI is failing weirdly. @jbylund are you getting this locally too?

jbylund commented 4 years ago

Yes, I'm getting this locally, but only for one python version.

RJ722 commented 4 years ago

The issue seems to be with coverage's latest release. I can reproduce this on master with Python 3.7.

jbylund commented 4 years ago

Yup, here's the ticket for reference: https://github.com/nedbat/coveragepy/issues/716

jendrikseipp commented 4 years ago

Regarding the tests: let's use coverage 4.5.x for now.

Regarding the changelog: I'll add your name.

Thanks again for looking into this!