-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pre-commit hook for autoflake #755
Comments
Hey @hofbi I'm not 100% confident about including Having said that, you can already make a hook yourself to use autoflake:
|
Thanks @MarcoGorelli for the quick reply. I saw that it is possible to use custom tools. Would you be interested to add autoflake to your https://github.com/nbQA-dev/nbQA/blob/main/.pre-commit-hooks.yaml? I could come up with a PR. I just tried in on my notebooks and worked well so far. |
I'd rather not, sorry, just a bit concerned about imports that might be used in parts of the notebook that nbqa can't currently process, see https://nbqa.readthedocs.io/en/latest/known-limitations.html It's one thing for |
Great collection of tools for notebooks. It would be great if you could add a pre-commit hook for https://github.com/PyCQA/autoflake
The text was updated successfully, but these errors were encountered: