Receiving pylint error on commit

I’ve been working on a change to an integration using the VSCode devcontainer. Previously when I committed from within VSCode, although slow, the commit has succeeded. But today, I can’t seem to get past an error in the pre-commit

pylint: error: Unrecognized option found: ignore-missing-annotations=y

And it appears to be coming from the call in .pre-commit-config.yaml

script/run-in-env.sh pylint -j 0 --ignore-missing-annotations=y

And when I run that command from the terminal, I get the same error. Searching the web and this forum tuned up zero results, so I believe I have a local problem, but not sure where to start. Looking for pointers.

Getting the same error here. I tried different pylint versions, no change. That options just doesn’t seem to exist, but then why is it in the pre-commit config?

I’m hitting the same issue. It’s really weird as that option was added 10 months ago: Add enforce_type_hints to vscode tasks (#74227) · home-assistant/core@1bfd8b1 · GitHub

But I can’t find any documentation or mention of that option whatsoever. And I verified I have the same version of pylint as is in the requirements file - pylint==2.17.0 .

I ran into this today too. I got it working by installing homeassistant.

pip install homeassistant
2 Likes