-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to run nbqa on notebooks present in directory without __init__.py #164
Comments
__init__.py
Hi @girip11 , Massive thanks for reporting the issue and for using nbqa - it warms my heart to see someone trying it out! 🙏 This was not intentional - what I wanted to do was ensure that any init.py files would be copied across (so that If you have any other feedback / suggestions please do let me know! |
First of all thanks a lot for your effort to create such a useful tool. Sure. I am actively using nbqa. I will report if I face any more issues. |
That's very kind of you! If you see ways to improve this tool, then pull requests would absolutely be welcome of course. I've pushed a patch release, if the issue reported isn't fixed please do let me know |
Thanks @MarcoGorelli . I updated to latest release (0.1.22) and I didn't face this issue. |
Hey @girip11 - I've noticed you've made some quality commits in your fork of this library. Nice! Do you want to open some pull requests? It's easier to review small and focused PRs than large ones, so if e.g. fixing a mypy type hint is ready, then it's easier if you make a PR just for that fix and keep the other fixes separate |
Hey @MarcoGorelli, I am interested in contributing to this library. I use VSCode as IDE. I was going through nbqa library dev ecosystem, setting up its dependencies in VSCode. I have made some minor changes during this process. I have my local setup ready now, I will soon be sending out smaller PRs as mentioned. |
OS: Ubuntu 18.04
nbqa version: 0.1.21
I have a notebook present in a directory which is not a python package. When i try to run the following command
nbqa black <my_notebook_file>
, I get aStopIteration
exception traceback. I looked into the code and I was able to figure out why it is raising this exception.I fixed the code locally and ran isort, black, flake8 and mypy. This is the fix I made locally
Are you mandating the presence of
__init__.py
file in the directory of notebooks to run nbqa?The text was updated successfully, but these errors were encountered: