Run pre-commit black
on notebooks via official hook
#169
Labels
🖱️ DX
Improvements to the Developer Experience
black
on notebooks via official hook
#169
Currently, notebooks are formatted with
black
usingnbqa-black
. This, however, does not guarantee that the version ofblack
used by nbQA is the same as theblack
used for.py
files. Nowadaysblack
provides its ownpre-commit
hook for notebooks though, which would guarantee the same version is run on both.py
and.ipynb
files.Example: ComPWA/compwa.github.io@ac0c5d2, where pre-commit.ci is still using a (cached) lower version for
black
than the one that was used locally for the PR.Implementation
black-jupyter
pre-commit hook #171The text was updated successfully, but these errors were encountered: