Formats python files with properly sorted import statemnts
Project description
fmp
FormatPython
Uses yapf and autoflake to format python files, but with properly sorted import statements.
Requirements
Installation
pip install fmp
Usage
usage: fmp [-h] [-s {pep8,google,yapf,facebook}] [-i] [-o] [-n] [-k]
files [files ...]
positional arguments:
files files to format
optional arguments:
-h, --help show this help message and exit
-s {pep8,google,yapf,facebook}, --style {pep8,google,yapf,facebook}
Formatting style
-i, --in-place Make changes in-place
-o, --only-imports Only return sorted import statements
-n, --show-line-numbers
Render a column for line numbers
-k, --keep-external-unused-imports
Keep the import statement of external unused modules
Examples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fmp-0.1.tar.gz
(451.3 kB
view hashes)
Built Distribution
fmp-0.1-py2.py3-none-any.whl
(5.2 kB
view hashes)