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
on my machine I get an error when running make setup. Some investigation showed that setup-venv finished successfully while setup-pre-commit fails with an InvalidManifestError. Also, it prevents from commits being made to this repo / or a fork of it). Full error message:
[... venv setup and package inatallation ...]
Successfully installed [... alll the packages ...]
.venv/bin/pre-commit install --overwrite --install-hooks
pre-commit installed at .git/hooks/pre-commit
An error has occurred: InvalidManifestError:
==> File /home/bliepp/.cache/pre-commit/repo9cqtpufl/.pre-commit-hooks.yaml
==> At Hook(id='black')
==> At key: stages
==> At index 0
=====> Expected one of commit, commit-msg, manual, merge-commit, post-checkout, post-commit, post-merge, prepare-commit-msg, push but got: 'pre-commit'
Check the log at /home/bliepp/.cache/pre-commit/pre-commit.log
make: *** [Makefile:28: setup-pre-commit] Fehler 1
I'm using Manjaro Linux and tried with Python3.8 and 3.11.
When replacing https://github.com/psf/black with https://github.com/psf/black-pre-commit-mirror in .pre-commit-config.yaml this error went away, but it then complained about not finding the interpreter of python3.10 (I haven't installed it, so duh). Changing the python version in .pre-commit-config.yaml back to python3.8 (the same this repo uses according to runtime.txt) fixed it.
(I just realized the first part about "black" hook repo being outdated seems like it's related to #1733 and #1737.)
The text was updated successfully, but these errors were encountered:
bliepp
changed the title
make setup fails due to error in pre-commit setup (InvalidManifestError)pre-commit python version mismatch and outdated black hooks repository
Apr 11, 2024
bliepp
added a commit
to bliepp/uberlab
that referenced
this issue
Apr 11, 2024
Hello there,
on my machine I get an error when running
make setup
. Some investigation showed thatsetup-venv
finished successfully whilesetup-pre-commit
fails with anInvalidManifestError
. Also, it prevents from commits being made to this repo / or a fork of it). Full error message:I'm using Manjaro Linux and tried with Python3.8 and 3.11.
When replacing
https://github.com/psf/black
withhttps://github.com/psf/black-pre-commit-mirror
in.pre-commit-config.yaml
this error went away, but it then complained about not finding the interpreter of python3.10 (I haven't installed it, so duh). Changing the python version in.pre-commit-config.yaml
back to python3.8 (the same this repo uses according toruntime.txt
) fixed it.(I just realized the first part about "black" hook repo being outdated seems like it's related to #1733 and #1737.)
The text was updated successfully, but these errors were encountered: