Latest hook changes might have a bug: InvalidManifestError
See original GitHub issueJust 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:
- Created 3 years ago
- Comments:22 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works fine for me (running
pre-commit
on thenbqa
repo I mean). Trypip install -U pre-commit
or evenpip install --force-reinstall -U pre-commit
I’m happy to close this issue if there isn’t anything else to be done