running `nbqa` from command-line
See original GitHub issuethrows an exception:
Traceback (most recent call last):
File "/Users/amichayoren/venv/algo/lib/python3.8/site-packages/nbqa/cmdline.py", line 127, in parse_args
args, cmd_args = parser.parse_known_args(raw_args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 1800, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 2034, in _parse_known_args
self.error(_('the following arguments are required: %s') %
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 2520, in error
self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 2507, in exit
_sys.exit(status)
SystemExit: 2
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Command-line examples — nbQA 1.5.3 documentation
Run your docstring tests with doctest: $ nbqa doctest my_notebook.ipynb **************** ...
Read more >Short Introduction to nbqa - Calmcode
In this short introduction we're doing to demonstrate how to use nbqa. ... To run it on notebooks, you can prepend it with...
Read more >Formatters — Using Automation To Support Quality Assured ...
Example difference output for nbqa black formatter. Running the command without the --nbqa-diff flag will cause the code cell in the notebook to...
Read more >NbQA: Run Isort, Pyupgrade, Mypy,... on Jupyter Notebook
NbQA : Run isort, pyupgrade, mypy, pylint, flake8, mdformat, black, blacken-docs, and more on Jupyter Notebooks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s a good point, maybe the traceback is too long and not helpful…reopening then, thanks for the feedback!
The latest release (0.4.0) shows
along with several other improvements.
Next big to-dos are:
%load_ext
--nbqa-diff
, which would make demoing the tool a whole lot easierDaniel I know you’re keen on the latter feature, we’ll let you know when it’s available, and now that some other issues have been resolved, the path is clear to do start implementing it!
Thanks all for your help in improving nbqa!