formatters-python

Format Python code using autopep8, black, isort, or yapf (or all)

Utkarsh Gupta

4,213

1

1.2.1

MIT

GitHub

This package consumes the following services:

Python Formatters for Atom Editor

apm apm apm

badge badge

Supports autopep8, black, isort, yapf for formatting Python code.

Features

Usage

If the path for any formatter is not provided, it will not be used.

Configuration

Any of the formatters can be configured in 3 ways:

All of these options can be individually adjusted for local (relative to file path) or global cases. The config in global options section of a formatter will be used if none of the local formatters is found.

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.

Commands

Thanks

Influenced by atom-python-black, prettier-atom.