always uses autopep8
See original GitHub issue- 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"
}
- 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:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top 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 >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
pyrightconfig.json
is used by Pyright, https://github.com/microsoft/pyright/blob/master/docs/configuration.mdThe
python.*
configurations listed in README is used by coc-pyright, which are set and read by coc.nvim, you need to set them incoc-settings.json
. I’ll update the README to describe it clearly.let g:python3_host_prog="/usr/bin/python" solved a problem with
:checkhealth`