question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange docs in "Known Limitations"

See original GitHub issue

Hi!

I was reading your docs and then I found this: Снимок экрана 2020-10-28 в 18 57 45

The text says “after trailing comma”, but the examples are using trailing ; Which one is correct?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
MarcoGorellicommented, Oct 28, 2020

my expectation is that this should work the way you expect it to

Nevermind, I just tried this on a notebook and got

$ nbqa flake8 comprehensive-data-exploration-with-python.ipynb 
Traceback (most recent call last):
  File "/home/marco/miniconda/bin/nbqa", line 8, in <module>
    sys.exit(main())
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 595, in main
    output_code = _run_on_one_root_dir(cli_args, configs, project_root)
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 528, in _run_on_one_root_dir
    out, notebook, nb_info_mapping[notebook].cell_mappings
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 126, in _map_python_line_to_nb_lines
    out = re.sub(pattern, substitution, out)
  File "/home/marco/miniconda/lib/python3.7/re.py", line 192, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 124, in substitution
    return str(cell_mapping[int(match.group())])
KeyError: 0

So, we have some work to do with parsing the output from the extra plugins before we can claim to support wemake-python-styleguide - I’ll get back to you on this anyway!

2reactions
MarcoGorellicommented, Oct 30, 2020

my expectation is that this should work the way you expect it to

Nevermind, I just tried this on a notebook and got

$ nbqa flake8 comprehensive-data-exploration-with-python.ipynb 
Traceback (most recent call last):
  File "/home/marco/miniconda/bin/nbqa", line 8, in <module>
    sys.exit(main())
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 595, in main
    output_code = _run_on_one_root_dir(cli_args, configs, project_root)
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 528, in _run_on_one_root_dir
    out, notebook, nb_info_mapping[notebook].cell_mappings
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 126, in _map_python_line_to_nb_lines
    out = re.sub(pattern, substitution, out)
  File "/home/marco/miniconda/lib/python3.7/re.py", line 192, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/home/marco/miniconda/lib/python3.7/site-packages/nbqa/__main__.py", line 124, in substitution
    return str(cell_mapping[int(match.group())])
KeyError: 0

So, we have some work to do with parsing the output from the extra plugins before we can claim to support wemake-python-styleguide - I’ll get back to you on this anyway!

The latest release (0.3.6) solves this problem, which was due to WPS giving warnings about line 0 (which I hadn’t planned for 😳)

There’s still some work to do before the in-line magics limitation is solved, but…we’re getting there 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Workspace Known Issues
If there are currently any known limitations, they'll be listed below. In this case, certain data must be exported through alternative means, as...
Read more >
6 fast fixes for common Google Docs problems - Computerworld
Knock down distressing Docs issues in no time with these easy-to-implement, expert-approved solutions.
Read more >
Known issues | Cloud Composer
In Cloud Composer 2, after an environment is created, several workloads in the environment's cluster remain in the Unschedulable state. This is a...
Read more >
How to solve text formatting issues in google docs and slides
When it comes to Google Docs, the weird text formatting throws the text off-screen. It also prevents you from selecting the text, so...
Read more >
Fixes or workarounds for recent issues in Word for Mac
Users may see issues with fonts when using version 16.9 of Microsoft Word, Excel, Outlook, OneNote and Microsoft PowerPoint on macOS. Symptoms: Text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found