Formats python files with properly sorted import statemnts
Project description
fmtpy
Uses yapf and autoflake to format python files, but with properly sorted import statements.
Requirements
Installation
pip install fmtpy
Usage
usage: fmtpy [-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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fmtpy-0.0.5.tar.gz
(448.8 kB
view hashes)
Built Distribution
Close
Hashes for fmtpy-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacd673ab259861d637fa6530e9415e42705452f9e1c619986ea6a8d70d2435e |
|
MD5 | 40c7dd694d332a47dbaf94b16fac20bf |
|
BLAKE2b-256 | 37d53a042ed25891ed1279e8705f614d247242c9861a11f91af0b49174c94001 |