Closed lexicalunit closed 3 months ago
Hmm, I'm not sure what's going on here exactly but it doesn't seem to be specific to Ruff. Ruff doesn't have any Python dependencies, it doesn't rely on any of these things. Are you able to run other hooks?
@charliermarsh
Hmm, I'm not sure what's going on here exactly but it doesn't seem to be specific to Ruff. Ruff doesn't have any Python dependencies, it doesn't rely on any of these things. Are you able to run other hooks?
Other hooks work well including a pyright hook.
Sorry, not sure. That's all pre-commit and pip code. Seems like it's related to your use of Python 3.12, but I'm not sure why the vendored pip is doing that: https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean.
Fixed it! I needed to install virtualenv
with pip
. I also then ran virtualenv --upgrade-embed-wheels
tho I am unsure if that was needed.
Phew, thanks for reporting back.
I'm trying to run
pre-commit run -a ruff
from within apython:3.12-alpine
docker container but I am running into some issues withpkgutil
. This works:This doesn't:
This also fails, in the same way:
See error information, below, for more details.
pre-commit configuration
version information
error information
additional information