Formats Python code using Black (https://github.com/ambv/black) plus enhancements.
Project description
Formats Python code using Black (https://github.com/ambv/black) plus enhancements:
Aligns assignments within a block
Aligns trailing comments within a block
Ensures that all line-delimited parameters and arguments include a trailing comma
Ensures that all logical clauses are line-delimited in any are
Reverts splits for empty parens
- Fine-grained control over line splitting for:
parameters
arguments
list items
dict items
tuple items
Fixes inconsistencies with textwrap.dedent and multiline strings
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
File details
Details for the file CommonEnvironment-Formatter-0.5.0b1.tar.gz
.
File metadata
- Download URL: CommonEnvironment-Formatter-0.5.0b1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a5e1e2e429b554c4a19c90ff524a429c88425dbd38830cec2cc6baaa38aaa0 |
|
MD5 | 52a60e19daf3a3b86ae475dc59ca0671 |
|
BLAKE2b-256 | 06bf89e6c3149e773a6ace02021b664d0b87f0a31dd24c3392713c1dd62f7716 |