Open abitrolly opened 3 years ago
Unfortunately hunter doesn't have a custom parser, it just uses python. Therefore you must obey python syntax - you can't give a positional argument after a keyword one. Try Q(filename_contains='venv'),stdlib=False
instead.
Do you mean it uses some kind of Python eval to parse the string as function argument?
Yeeep.
Maybe in the future there will be a fancy parser but it's a big feature.
Strange that Python doesn't ship with some basic parser lib that allows to detect pair braces and stuff.
Running a script with
PYTHONHUNTER="stdlib=False,Q(filename_contains='venv')" python a_script.py
produces this error.