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.3.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for fmtpy-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2794f02f1cbf50538371bd738d2260b13291dd8a8a3041877812fd2501eb9e4 |
|
MD5 | 3a89417a029b0119bb3750054431274e |
|
BLAKE2b-256 | f7a17d0f922adc0360652f193472895f2f157f39c4928f7c574be616aaee1559 |