in my pre-commit-config.yaml file i'm trying to run black, the python code formatter
repos:
- repo: https://github.com/python/black
rev: stable
hooks:
- id: black
language_version: python3.6
but whenever I tried running black with pipenv run pre-commit --all
the code will fail with the error message
An unexpected error has occurred: AttributeError: type object 'Hook' has no attribute 'create'
Check the log at some_path
when I go to some_path
I couldn't find any logs there. I tried not running the pipenv run pre-commit --all
to apply black to my code, but the error still appears when I try to git commit
any new files. Any ways to solve this?