-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
ruff throw a syntax error for code like this:
import sys
value: str = sys.argv[1]
match value:
case "ruff":
print("Rough?")
case "awesome":
print("Of course is it!")
case _:
print("what?")$ ruff ruff_and_match.py
Found 1 error(s).
ruff_and_match.py:5:8: E999 SyntaxError: invalid syntax. Got unexpected token 'value'
versions
- Python 3.10.6
- ruff 0.0.108
config:
[tool.ruff]
line-length = 100
select=["E", "F", "W", "U", "N", "C", "B", "A", "T", "Q", "RUF", "M", "ANN"]
ignore=["F403", "F405", "B008", "A003"]
(and yes ruff is awesome ;-))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels