econchick / interrogate

Explain yourself! Interrogate a codebase for docstring coverage.
https://interrogate.readthedocs.io
MIT License
565 stars 46 forks source link

Python Match|Case no support? #121

Open TheRealVizard opened 2 years ago

TheRealVizard commented 2 years ago

Environment

Description of the bug

Interrogate fails with new match syntax image

What you expected to happen

Pass

How to reproduce (as minimally and precisely as possible)

Get the coverage of your code when match is used in it.

Anthing else we need to know?

One posible solution

# https://github.com/Instagram/LibCST/issues/285#issuecomment-1011427731
if sys.version_info.major >= 3 and sys.version_info.minor >= 10:
    os.environ["LIBCST_PARSER_TYPE"] = "native"