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.01k stars 39 forks source link

Add support for ruff as pre-commit-hook #822

Closed havspect closed 1 year ago

havspect commented 1 year ago

I think the title speaks for itself. Ruff offers a pre-commit-hook which can easily be used with nbQA.

I would love to help with this issue.

MarcoGorelli commented 1 year ago

isn't it there already?

MarcoGorelli commented 1 year ago

yup: https://github.com/nbQA-dev/nbQA/blob/3e48f1d425d7abb195b5ff5cb02df39b70eceb3c/.pre-commit-hooks.yaml#L89-L96