On , I learnt ...

You can run ruff on Jupyter notebooks

If you ensure your pyproject.toml contains::

[tool.ruff]
extend-include = ["*.ipynb"]

then ruff can be used to lint Jupyter notebooks (source: the Ruff docs).