black
is not found when nbdev_export
is run in pre-commit hook
#1366
Labels
bug
Something isn't working
black
is not found when nbdev_export
is run in pre-commit hook
#1366
When creating a brand new repository and setting
black_formatting=True
insettings.ini
, indeedblack
is run as part ofnbdev_export
correctly. However, when I addnbdev_clean
andnbdev_export
as pre-commit hooks, exactly as in the docs,nbdev_clean
runs correctly butnbdev_export
breaks with the following traceback:I can make things work by activating the environment
/Users/ulupo/.cache/pre-commit/repochwlih_v/py_env-python3.10
and installingblack
there, but this is not an ideal solution.The text was updated successfully, but these errors were encountered: