nbQA: Latest hook changes might have a bug: InvalidManifestError

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

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

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

and all issues have been resolved.

So you’re able to use it now? Awesome! Please do let us know if anything else trips you up

Reinstalling it worked. But I’m surprised why this happened.

My guess is that you might have had an old version of pre-commit where the tag jupyter hadn’t been defined yet - had you ever installed it in the past?

Reinstalling it worked. But I’m surprised why this happened.