You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PYTHONHUNTER="stdlib=False,Q(filename_contains='venv')" is invalid #89
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.
Activity
ionelmc commentedon Jan 17, 2021
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=Falseinstead.abitrolly commentedon Jan 17, 2021
Do you mean it uses some kind of Python eval to parse the string as function argument?
ionelmc commentedon Jan 17, 2021
Yeeep.
ionelmc commentedon Jan 17, 2021
Maybe in the future there will be a fancy parser but it's a big feature.
abitrolly commentedon Jan 17, 2021
Strange that Python doesn't ship with some basic parser lib that allows to detect pair braces and stuff.
Parameter parser helper to replace eval of env variable (ionelmc#89)