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-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


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.0b1.tar.gz (18.5 kB view hashes)

Uploaded Source

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