nbQA-dev / nbQA

Run ruff, isort, pyupgrade, mypy, pylint, flake8, and more on Jupyter Notebooks
https://nbqa.readthedocs.io/en/latest/index.html
MIT License
1.05k stars 41 forks source link

Cell ids change on each pre-commit run #778

Closed joshdunnlime closed 1 year ago

joshdunnlime commented 1 year ago

When running the pre-commit --all-file with version:

"nbformat": 4, "nbformat_minor": 5

It changes the cell id even when nothing else changes in the ipynb file. As you might imagine, this make VC with git near impossible. Any way around this? Thanks.

MarcoGorelli commented 1 year ago

hi @joshdunnlime - do you have an example please?

pre-commit --all-file isn't a valid command, please show exactly what you ran

MarcoGorelli commented 1 year ago

let us know if you have a reproducible example and we'll reopen