ipywidgets
ipywidgets copied to clipboard
Use precommit to normalize codebase
I've seen several Jupyter projects adopt precommit (thanks @blink1073!). For fun, I copied JupyterLab's precommit file and tried it out here.
It seems that 3251bc22d79cf889d8aa5d218cfdaca21d5c4be5 introduces a circular dependency or something - we can't even import ipywidgets
Yep, this would be good. Would be interesting to rekick this to see if anything improves the CI situation.
As discussed on #3673: potentially consider adding to prettier config:
printWidth: 88 # to align with `black`
proseWrap: always # to improve narrative diffs
Also:
- jupyter-black
- and some way of formatting/normalizing markdown cells of notebooks...
- I don't yet have a good answer for this, though not for lack of trying:
prettierstill seems to give better results overmdformat, but is relatively lousy at many small inputs called from python - perhaps a
prettier-plugin-ipynbwould be an option, but out of scope foripywidgets
- I don't yet have a good answer for this, though not for lack of trying: