Supports autopep8, black, isort, yapf for formatting Python code.
Make sure you have installed the required formatters.
Eg. If you want to use isort & black, run pip install isort black
.
After installing in system/pyenv/venv/conda, run which <formatter>
& add the binary path to package settings.
Eg. Running which black
gives /usr/local/bin/black
. Then add this path in package settings in the "black" section.
Define format order for :format command and/or save order for auto-format on save, if required.
If the path for any formatter is not provided, it will not be used.
Any of the formatters can be configured in 4 ways:
Please note that command line arguments may or may not override the config files, explicitly passed or otherwise. Please consult formatter documentation for the exact behaviour.
formatters-python:autopep8
formatters-python:black
formatters-python:isort
formatters-python:yapf
formatters-python:format
formatters-python:toggle-format-on-save
Influenced by atom-python-black, prettier-atom.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.