Format python files automatically (sorted imports + yapf)
Project description
fmtpy
Uses yapf to format python files, but with properly sorted import statemnts.
Requirements
Installation
pip install fmtpy
Usage
usage: fmtpy [-h] [-s {pep8,google,yapf,facebook}] [-i] [-o] [-n]
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
Exampls
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.2.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for fmtpy-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c1a47c1e0c91efdd9b2f7819a81c955146d5a125d3875fa60f3c95e5da26ff |
|
MD5 | f495608811b726b7d5261893f1622a7d |
|
BLAKE2b-256 | ffef074dbd7a4288fafe5c18eeb687ebe63d7c9c76f0b550842e95c62a2537fd |