graphnet-team / graphnet

A Deep learning library for neutrino telescopes
https://graphnet-team.github.io/graphnet/
Apache License 2.0
94 stars 94 forks source link

pre-commit broken #757

Closed Aske-Rosted closed 3 weeks ago

Aske-Rosted commented 1 month ago

Describe the bug pre-commit is currently broken when running remotely from this repository. I suspect this to be due to not having updated the hooks for a while

To Reproduce Run the hooks on current main branch and hooks will fail

Expected behavior hooks not failing

Full traceback Please include the full error message to allow for debugging

<Run pre-commit run flake8 --all-files
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://github.com/pycqa/flake8.
[INFO] Initializing environment for https://github.com/pycqa/docformatter.
An error has occurred: InvalidManifestError: 
==> File /home/runner/.cache/pre-commit/reporkumpgd2/.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/runner/.cache/pre-commit/pre-commit.log
Error: The operation was canceled.>