Skip to content
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

update pre-commit hooks #179

Merged
merged 2 commits into from
Jan 14, 2025
Merged

update pre-commit hooks #179

merged 2 commits into from
Jan 14, 2025

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Jan 14, 2025

  • by calling pre-commit autoupdate, but switched back to specific revision (rev: 06907d0) for docformatter (because 🩹 Fix pre commit hook manifest PyCQA/docformatter#287 is not yet released)
  • then, called pre-commit run -a and fixed remaining issues
  • this also adds exclude: "^data/.*" to the .pre-commit-config.yaml: exclude content of root data folder

This fixes the following error on CI:

An error has occurred: InvalidManifestError: 
==> File /home/runner/.cache/pre-commit/repogtzzmo34/.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 process '/opt/hostedtoolcache/Python/3.9.21/x64/bin/pre-commit' failed with exit code 1

@ArneBinder ArneBinder merged commit 0641772 into main Jan 14, 2025
2 checks passed
@ArneBinder ArneBinder deleted the update_pre-commit_hooks branch January 14, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant