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.

always uses autopep8

See original GitHub issue
  1. it won’t work for me if you use python.* as a key:
{
        "venvPath": "/home/kaldown/.cache/pypoetry/virtualenvs",
        "venv": "api-ohFkNBde-py3.9",
        "formatting.provider": "black"
        "python.formatting.provider": "black"
}
  1. this doesn’t work for black
:Format
[coc.nvim] Formatting with autopep8 failed. autopep8 module is not installed.
[coc.nvim] Formatted with autopep8

Logs from pyright-formatting

########## active formattor: autopep8
execPath:   autopep8
moduleName: autopep8
args:       --diff,/home/kaldown/projects/api/api/user.py.637c8314dedc40677769355f0c7e1395.py
########## Formatting with autopep8 failed
Formatting with autopep8 failed. autopep8 module is not installed.
Module 'autopep8' not installed.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fannheywardcommented, Jan 11, 2021

pyrightconfig.json is used by Pyright, https://github.com/microsoft/pyright/blob/master/docs/configuration.md

The python.* configurations listed in README is used by coc-pyright, which are set and read by coc.nvim, you need to set them in coc-settings.json. I’ll update the README to describe it clearly.

0reactions
kaldowncommented, Feb 18, 2021

let g:python3_host_prog="/usr/bin/python" solved a problem with :checkhealth`

Read more comments on GitHub >

github_iconTop Results From Across the Web

emacsmirror/py-autopep8 - GitHub
Use autopep8 to beautify a Python buffer. ... autopep8 command (otherwise autopep8 from the PATH will be used). py-autopep8-on-save-p (defaults to 'always )....
Read more >
How to run *BOTH* black and autopep8 *AUTOMATICALLY ...
My understanding is that VS Code has a setting python.formatting.provider that you can set to black , or autopep8 , or yapf ,...
Read more >
Python Auto Formatter: Autopep8 vs. Black (and some ...
Here's the conclusion: I prefer black over autopep8, but there are some practical tips (in the end) that you should keep in mind...
Read more >
Auto formatters for Python
Autopep8 is formatting the parameters below each other and also starting a new line since it analyzed that there are too many parameters...
Read more >
autopep8 - PyPI
autopep8 automatically formats Python code to conform to the PEP 8 style guide. It uses the pycodestyle utility to determine what parts of...
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