I have a notebook.ipynb with one cell that has the following code def test( ): return "yes"
and another script.py that has one line of code: test="test"
So I run the following command:
black --$(git diff --name-only -- *.ipynb -- *.py)
My terminal shows one change on the notebook.ipynb
and no change on the script.py
How should I use the command git diff --name-only
?