econchick / econchick/interrogate

Python Match|Case no support?

Open
#121 0 comments 0 reactions 1 assignee Claimed by @econchick View on GitHub
bug needs triage
Dominant language
Python
Stars
676
Forks
55
PR merge metrics
No merged PRs in 30d

Description

### Environment

- `interrogate` version(s) (`interrogate --version`: 1.5.0
- Operating System(s): Linux
- Python version(s): 3.10

### Description of the bug
Interrogate fails with new `match` syntax
![image](https://user-images.githubusercontent.com/75857767/178368270-50c1ebf4-03f5-4335-976c-34a09c88668f.png)

### 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"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.