open-mmlab / mmhuman3d

OpenMMLab 3D Human Parametric Model Toolbox and Benchmark
https://mmhuman3d.readthedocs.io/
Apache License 2.0
1.25k stars 137 forks source link

Pre commit error: InvalidManifestError: #403

Open gjmm07 opened 1 month ago

gjmm07 commented 1 month ago

Hey,

I am trying to contribute to this project. The problem is I cannot commit due to pre-commit errors. When running git commit -m "" I get this error:

An error has occurred: InvalidManifestError: 
==> File /home/<name>/.cache/pre-commit/repofaig1u3l/.pre-commit-hooks.yaml
==> At Hook(id='docformatter-venv')
==> At key: language
=====> Expected one of conda, coursier, dart, docker, docker_image, dotnet, fail, golang, haskell, lua, node, perl, pygrep, python, r, ruby, rust, script, swift, system but got: 'python_venv'
Check the log at /home/<name>/.cache/pre-commit/pre-commit.log

After some research I found that using python_venv as language is deprecated, but still used with docformatter current version (v1.7.5). As a workaround one could put "rev: master" see here.

To my understanding I am not allowed to change this. Is there a workaround for this?

Kind regards