-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dev] Installing pre-commit
hooks fails due to PIP_USER=1
#501
Comments
Hi @superstar54, @edan-bainglass. I unfortunately encountered this problem while trying to address the request in aiidalab/aiidalab-qe#802. I'm also getting a persisting warning during installation for aiidalab-qe:
Not sure if it's relevant to this issue, but wanted to mention it anyway. |
Hi @PNOGillespie. Regarding the deprecation, this was mentioned before. I believe @danielhollas was considering removing the dependency, though I think the discussion was pending a word from @yakutovicha. Not sure about the other part. @superstar54? |
The deprecation was solved some time ago and will be fixed in AWB=2.3.0. Regarding the pre-commit fail, that is an unfortunate interaction with a change I did in Docker stack where we set the PIP_USER=1 envvar to instruct pip to default to I didn't realise that this would impact pre-commit hooks. I think ultimately this is something that should be fixed in pre-commit. I'll try to open an issue. In the meantime, you can run |
Thanks for the reply @danielhollas, indeed it did fix the issue. @superstar54, do you want to close this issue since @danielhollas is going to open a new one? |
I am going to move this issue to |
pre-commit
Hooks Fails for Latest Docker Stackpre-commit
hooks fails due to PIP_USER=1
There is a (closed) issue about this on pre-commit repo, I commented on it, let's see |
pre-commit will not do anything so we'll need to fix this on our end, but I don't know how yet. I thought that using an For my own posterity here's an unhelpful chat with Claude |
Describe the bug
Installation of
pre-commit
for AiiDALab-QE repository fails when trying to install Hooks, giving the following traceback:To Reproduce
Following official instructions for installation via Docker container (either
docker run aiidalab/qe:latest
oraiidalab-launch
with/without aiidalab-qe):pip install -e .[dev]
pre-commit
(orpre-commit install-hooks
)Version (if known)
The text was updated successfully, but these errors were encountered: