basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

`reportUnusedFunction` should not consider tests

Open KotlinIsland opened this issue 1 year ago • 1 comments

def _f(): ...

def test_f():
    _f()

i would expect this to report that _f() is unused, maybe this should be configurable? would need a way to specify what a test is

KotlinIsland avatar Aug 01 '24 03:08 KotlinIsland

it should be configurable so it depends on #539, and when running in "application" mode (ie. not a library), it should also report unused public functions as well as not count usages in tests. this functionality would also need to rely on #311 i guess

DetachHead avatar Aug 01 '24 03:08 DetachHead