typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Figure out how to enable pyright's `reportUnnecessaryTypeIgnoreComment` setting for the whole `test_cases` directory

Open AlexWaygood opened this issue 3 years ago • 0 comments

Currently, we have mypy's --warn-unused-ignore setting enabled for the whole test_cases directory, but for pyright, we have to manually add # pyright: reportUnnecessaryTypeIgnoreComment=true at the top of each file in the directory. These settings are crucial to these tests working properly; none of tests against false-negatives work properly without them.

It would be good if we could work out how to get # pyright: reportUnnecessaryTypeIgnoreComment=true enabled for the whole directory. The current system is error-prone: if we forget to add it at the top of a file, any tests against false negatives could fail silently on pyright.

AlexWaygood avatar Aug 08 '22 12:08 AlexWaygood