Skip to main content

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-delimied parameters and arguments include a trailing comma

  • Reverts splits for empty parens

  • Fine-grained control over line splitting for:
    • parameters

    • arguments

    • list items

    • dict items

    • tuple items

  • Fixes inconsitencies with textwrap.dedent and multiline strings

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

CommonEnvironment-Formatter-0.5.0a3.tar.gz (17.1 kB view details)

Uploaded Source

File details

Details for the file CommonEnvironment-Formatter-0.5.0a3.tar.gz.

File metadata

  • Download URL: CommonEnvironment-Formatter-0.5.0a3.tar.gz
  • Upload date:
  • Size: 17.1 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

Hashes for CommonEnvironment-Formatter-0.5.0a3.tar.gz
Algorithm Hash digest
SHA256 0c8d3af9f47fb70471182ed2cd4172bcd29e0c65bd2fc5d52c448388cdaaa598
MD5 fb50e33ab066f6ed9a023d4bb8d1b82c
BLAKE2b-256 ae56b346105769db516fa22f74fea10c0138108ff1b650506f13789d09a5dc66

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page