question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest hook changes might have a bug: InvalidManifestError

See original GitHub issue

Just after I reinstalled pre-commit (after getting the latest changes) and then I ran precommit run --all or even tried to git commit my changes I get this error:

An error has occurred: InvalidManifestError:
==> File /Users/user/.cache/pre-commit/repo8m9u7jls/.pre-commit-hooks.yaml
==> At Hook(id='nbqa')
==> At key: types
==> At index 0
=====> Type tag 'jupyter' is not recognized.  Try upgrading identify and pre-commit?
Check the log at /Users/user/.cache/pre-commit/pre-commit.log

Workaround: uninstall precommit and we can continue to use git commit

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
s-weigandcommented, Oct 17, 2020

Works fine for me (running pre-commit on the nbqa repo I mean). Try pip install -U pre-commit or even pip install --force-reinstall -U pre-commit

2reactions
neomatrix369commented, Oct 17, 2020

I’m happy to close this issue if there isn’t anything else to be done

Read more comments on GitHub >

github_iconTop Results From Across the Web

pre-commit
Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically...
Read more >
An error has occurred: InvalidManifestError - Have Fun Learning
Error running pre-commit: Type tag 'jupyter' is not recognized. Try upgrading identify and pre-commit? Fix the cache with: $ rm - ...
Read more >
How to Add Commit Hooks to Git with Husky to Automate ...
While we're going to test this out before committing the changes, once you apply this as a Git Hook, it will automate this...
Read more >
pre-commit InvalidConfigError - Stack Overflow
I missed adding "hooks" to the file, now it works: - repo: local hooks: # <- this was missing - id: pytest name:...
Read more >
Understanding Git Hooks. Hello Folks! | by Amit Prajapati
For example, one could have a pre-push hook to validate that the code enforces ... When initializing a new project git populates the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found